CentOS Python Java installations

https://www.centos.org/centos-linux/

  1. Starting driver (UltraISO/rufus +BIOS check)
cd dev
ls|grep sd
vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64.check quiet
=> vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sda4
ctrl + x
  1. Users
passwd root
useradd xxx
passwd xxx
usermod -g root xxx
  1. Network
cd /etc/sysconfig/network-scripts
vim /etc/sysconfig/network-scripts/ifcfg-ethX # ONBOOT=yesservice network restart # reboot
  1. SSH
# vi ~/.ssh/know_hosts # delete existing RSA key accordingly# yum install ssh# service sshd startchkconfig sshd on
vi /etc/ssh/sshd_config # Port 22 # PermitRootLogin yes
systemctl restart sshd # /etc/init.d/sshd startssh xxx@host_ip
# yum -y install wget # yes
  1. SSL
# SSL
yum install openssl* -y
vi Module/Setup
ssl _ssl.c \
 - DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
 - L$(SSL)/lib -lssl -lcrypto
. /configure
sudomake&&makeinstall
  1. Python
# yum -y install epel-release# yum repolist# yum -y install python37#Python3 chose an old version, which should be a stable version of wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz
yum install zlib-devel #It is best to install zlib first-devel, don’t delete python2, otherwise yum won’t be used!mkdir /home/python3 #or/usr/local/python3tar -zxvf Python-3.7.6.tgz
. /configure
make&&makeinstall#The installation and distribution of rpm package is not as good as this installation method# python = python3 #Point the python instruction to python3echoalias python=python3 >> ~/.bashrc
source ~/.bashrc
echoalias pip=pip3 >> ~/.bashrc
source ~/.bashrc
# Re-source after restarting, you can directly change the soft connection here# ln -s /home/python3/Python-3.7.6/bin/python3.7 /usr/bin/python3# ln -s /home/python3/Python-3.7.6/bin/pip3.7 /usr/bin/pip3
  1. Java
# JDK install wget https://download.oracle.com/otn/java/jdk/8u241-b07/1f5b5a70bf22433b84d0e960903adac8/jdk-8u241-linux-x64.tar.gz?AuthParam=1579597926_feb4b98c7a997f72e6005f67d40019e1"
tar -zxvf jdk-8u151-linux-x64.tar.gz
# JDK configuration vi/etc/profile
set java environment
JAVA_HOME=/home/java      
JRE_HOME=/home/java     
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH
source /etc/profile

Recommended Posts

CentOS Python Java installations
CentOS + Python3.6+
Centos 7.5 python3.6
Centos6 install Python2.7.13
Centos7 install Python 3.6.
CentOS7 upgrade python3
CentOS install Python 3.6
Centos7 install Python2.7
Centos install Python3
CentOS 7 install Java 1.8
CentOS 7 install Java 1.8
CentOS6.8 install python2.7
Centos 6.4 python 2.6 upgrade to 2.7
Install Java on Centos 7
Centos 6.4 python 2.6 upgrade to 2.7
Centos source installation Python3
CentOS upgrade python2 to pyth
centos7 install python3 and ipython
CentOS6.5 install Java 8 and Tomcat8
Centos 6.10 reinstall python and yum
CentOS7 install python3 and pip3
Install Java JDK8 under CentOS6
CentOS6.5 install Java 8 and Tomcat8
CentOS6.5 install Java 8 and Tomcat8
CentOS 6.9 compile and install python
Centos6 install python3 pip3 ipython3
CentOS 7 configure Java language development environment
Tencent Cloud Centos7 install java server
How to install Java on CentOS 8
CentOS8 install jdk8 / java8 tutorial (recommended)
Tencent Cloud Centos7 install java server
Install java in yum mode in Centos
CentOS quickly install Python3 and pip3
How to install Python 3.8 on CentOS 8
Centos6.7 comes with python upgrade to
How does python call java classes
Install Python3 and ansible under CentOS8
Centos7 build java web server tomcat
Install Python3 and Py under CentOS7
CentOS7 repairs python to save yum
CentOS 7 configure Python language development environment
Centos7.5 configuration java environment installation tomcat explanation
R&D: How To Install Python 3 on CentOS 7
Java or Python for big data analysis
Python and scrapy deployment in centos environment
Some Centos Python production environment deployment commands