1:先关闭tomcat,注意要切到指定bin目录下
root@lvzy-KVM:/opt/tomcat8/apache-tomcat-8.5.11/bin# ./shutdown.sh
Using CATALINA_BASE: /opt/tomcat8/apache-tomcat-8.5.11Using CATALINA_HOME: /opt/tomcat8/apache-tomcat-8.5.11
Using CATALINA_TMPDIR: /opt/tomcat8/apache-tomcat-8.5.11/temp
Using JRE_HOME: /opt/jvm/jdk1.8.0_121/jre
Using CLASSPATH: /opt/tomcat8/apache-tomcat-8.5.11/bin/bootstrap.jar:/opt/tomcat8/apache-tomcat-8.5.11/bin/tomcat-juli.jarroot@lvzy-KVM:/opt/tomcat8/apache-tomcat-
2:查看是否已经关闭
8.5.11/bin# ps -ef|grep java
root 4611 1932 0 14:38 pts/8 00:00:00 grep --color=auto java3:重新启动Tomcat
root@lvzy-KVM:/opt/tomcat8/apache-tomcat-8.5.11/bin# ./startup.sh
Using CATALINA_BASE: /opt/tomcat8/apache-tomcat-8.5.11Using CATALINA_HOME: /opt/tomcat8/apache-tomcat-8.5.11
Using CATALINA_TMPDIR: /opt/tomcat8/apache-tomcat-8.5.11/temp
Using JRE_HOME: /opt/jvm/jdk1.8.0_121/jre
Using CLASSPATH: /opt/tomcat8/apache-tomcat-8.5.11/bin/bootstrap.jar:/opt/tomcat8/apache-tomcat-8.5.11/bin/tomcat-juli.jar
Tomcat started.
4:查看是否已经启动
root@lvzy-KVM:/opt/tomcat8/apache-tomcat-8.5.11/bin# ps -ef|grep java
root 4639 1932 0 14:38 pts/8 00:00:00 grep --color=auto java