https://www.centos.org/centos-linux/
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
passwd root
useradd xxx
passwd xxx
usermod -g root xxx
cd /etc/sysconfig/network-scripts
vim /etc/sysconfig/network-scripts/ifcfg-ethX # ONBOOT=yesservice network restart # reboot
# 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
# 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
# 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
# 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