The centos7 system uses yum to install jdk, mysql, tomcat
The Alibaba Cloud server just applied for is generally not installed. Enter these commands. If nothing appears, it means that it is not installed.
- Use yum to install jkd1.8, the installation command:
yum install java-1.8.0-openjdk* -y
- First check whether mariadb is installed
rpm -qa | grep mariadb
Then check whether mysql is installed
rpm -qa|grep -i mysql
clear this mariadb and mysql
rpm -e 对应的包名称
Download the installation package of mysql
Enter cd /usr/local/src Execute the following command
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
yum install mysql-server -y
It is still very fast to install with the server of Alibaba Cloud, and then just wait for the installation. Everything is default, but after the installation is completed, the password is a random password, and the password needs to be reset.
Start the mysql service:
service mysqld start
Get the initial password:
grep "password" /var/log/mysqld.log
Then reset the password
After the server logs in to mysql, change the "host" item in the "user" table in the "mysql" database, and change the name from "localhost" to '%'.
SQL statements:
Authorization user root login: mysql -u root -p
select mysql library: use mysql;
modify the initial password
set password for 'root'@'localhost'='HuaoRoot';
View the host value of the user table in the mysql library (the host/IP name that can be connected and accessed): select host from user where user='root';
modify the host value (add the host/IP address with the content of the wildcard %), of course, you can also directly increase the IP address:update user set host = '%' where user ='root';
Refresh the MySQL system privilege related tables:flush privileges;
Re-query whether the value of the host field has changed: select host from user where user='root';
modify the initial password
Then go to the tomcat official website to download the tomcat linux version compressed package, and use mobox to put it in the server folder.
Run the jar package in the background
nohup java -jar shareniu.jar >spring.log &
view progress
ps aux|grep getCimiss-surf.jar