下载安装包
安装mysql8.0
# tar -xf mysql-8.0.11-1.el7.x86_64.rpm-bundle.tar -C /opt/mysql
# createrepo /opt/mysql
# yum-config-manager --add-repo=file:///opt/mysql
Loaded plugins: fastestmirror
adding repo from: /opt/mysql
[_opt_mysql]
name=added from: /opt/mysql
baseurl=/opt/mysql
enabled=1
# echo "gpgcheck=0" >> /etc/yum.repos.d/_opt_mysql.repo
# yum -y install mysql-community-server
# systemctl start mysqld
# ^start^enable
# netstat -lnput | grep 3306
# grep 'temporary password' /var/log/mysqld.log
2018-06-12T07:37:39.045310Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 'elsq#kB%5Xgx'
# mysql -uroot -pelsq#kB%5Xgx
mysql> alter user 'root'@'localhost'identified with mysql_native_password by "Mr.Testder"
安装jdk
export JAVA_HOME=/usr/jdk1.8.0_77
export PATH=$JAVA_HOME/bin:$PATH
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
安装tomcat9.0
# tar -xzf apache-tomcat-9.0.8.tar.gz
# mv apache-tomcat-9.0.8 /usr/local/tomcat
tomcat部署war包
# rm -rf /usr/local/tomcat/webapps/*
# unzip -qo iot.war -d /usr/local/tomcat/webapps
# cd /usr/local/tomcat/bin
# ./startup.sh
# netstat -lnptu | grep 8080