Apt-get update command
apt-get update
Yum install command
First detects whether the installation package build-essential
sudo apt-get install build-essential
Yum install
udo apt-get install yum
Check whether the installation was successful yum, yum command input to see if there are operating tips
yum
Installation lrzsz command
sudo apt-get install lrzsz
Installation openjdk-8-jdk
sudo apt-get install openjdk-8-jdk
View java version to see if the installation was successful
java -version
Configuration JAVA_HOME environment variables, see: https://www.cnblogs.com/juihai/p/11710381.html
Access is not installed MySQL
dpkg -l | grep mysql
Installing MySQL
apt install mysql-server
After the installation is complete, you can use the following command to check whether the installation was successful
netstat -tap | grep mysql
Installation netstat command
sudo apt-get install net-tools
Mysql directory where authorized, root user does not need
sudo chown mysql /var/run/mysqld/ sudo service mysql restart
Log in mysql
mysql -u root -p