[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat/tomcat8.5
Using CATALINA_HOME: /usr/local/tomcat/tomcat8.5
Using CATALINA_TMPDIR: /usr/local/tomcat/tomcat8.5/temp
Using JRE_HOME: /usr/local/jdk1.8.0_221/jar
Using CLASSPATH: /usr/local/tomcat/tomcat8.5/bin/bootstrap.jar:/usr/local/tomcat/tomcat8.5/bin/tomcat-juli.jar
Tomcat started.
[root@localhost bin]# tail -f ../logs/catalina.out
/usr/local/tomcat/tomcat8.5/bin/catalina.sh: line 464: /usr/local/jdk1.8.0_221/jar/bin/java: 没有那个文件或目录
/usr/local/tomcat/tomcat8.5/bin/catalina.sh: line 464: /usr/local/jdk1.8.0_221/jar/bin/java: 没有那个文件或目录
/usr/local/tomcat/tomcat8.5/bin/catalina.sh: line 464: /usr/local/jdk1.8.0_221/jar/bin/java: 没有那个文件或目录
JAVA_HOME=/usr/local/java/jdk1.8.0_201
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASS_PATH PATH