# -----------------------------------------------------------------------------
# Start Script for the CATALINA Server
# -----------------------------------------------------------------------------
# java user add start
export JAVA_HOME=/usr/local/java/jdk1.8.0_144
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:${CLASS_PATH}
export PATH=${JAVA_HOME}/bin:${PATH}
# tomcat
export TOMCAT_HOME=/mytomcat/bak/apache-tomcat-9.0.1
# java user add end
# -----------------------------------------------------------------------------
启动 ./startup.sh
root@iZuf6f6ik849mket2if7wbZ:/mytomcat/bak/apache-tomcat-9.0.1/bin# ./startup.sh
Using CATALINA_BASE: /mytomcat/bak/apache-tomcat-9.0.1
Using CATALINA_HOME: /mytomcat/bak/apache-tomcat-9.0.1
Using CATALINA_TMPDIR: /mytomcat/bak/apache-tomcat-9.0.1/temp
Using JRE_HOME: /usr/local/java/jdk1.8.0_144/jre
Using CLASSPATH: /mytomcat/bak/apache-tomcat-9.0.1/bin/bootstrap.jar:/mytomcat/bak/apache-tomcat-9.0.1/bin/tomcat-juli.jar
Tomcat started.