安裝jdkhtml
tar zxvf jdk-8u171-linux-x64.tar.gz mv jdk1.8.0_171 /usr/local/jdk1.8 vi /etc/profile //最後面增長
JAVA_HOME=/usr/local/jdk1.8/ JAVA_BIN=/usr/local/jdk1.8/bin JRE_HOME=/usr/local/jdk1.8/jre PATH=$PATH:/usr/local/jdk1.8/bin:/usr/local/jdk1.8/jre/bin CLASSPATH=/usr/local/jdk1.8/jre/lib:/usr/local/jdk1.8/lib:/usr/local/jdk1.8/jre/lib/charsets.jar
source /etc/profile java -version
cd /usr/local/src wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.tar.gz tar zxvf apache-tomcat-8.5.31.tar.gz mv apache-tomcat-8.5.31 /usr/local/tomcat /usr/local/tomcat/bin/startup.sh ps aux|grep tomcat netstat -lntp |grep java
https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.31/bin/apache-tomcat-8.5.31.tar.gzjava