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.11
Using 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 java

3:重新启动Tomcat

root@lvzy-KVM:/opt/tomcat8/apache-tomcat-8.5.11/bin# ./startup.sh

Using CATALINA_BASE:   /opt/tomcat8/apache-tomcat-8.5.11
Using 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      4620     1 99 14:38 pts/8    00:00:06 /opt/jvm/jdk1.8.0_121/jre/bin/java -Djava.util.logging.config.file=/opt/tomcat8/apache-tomcat-8.5.11/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -classpath /opt/tomcat8/apache-tomcat-8.5.11/bin/bootstrap.jar:/opt/tomcat8/apache-tomcat-8.5.11/bin/tomcat-juli.jar -Dcatalina.base=/opt/tomcat8/apache-tomcat-8.5.11 -Dcatalina.home=/opt/tomcat8/apache-tomcat-8.5.11 -Djava.io.tmpdir=/opt/tomcat8/apache-tomcat-8.5.11/temp org.apache.catalina.startup.Bootstrap start
root      4639  1932  0 14:38 pts/8    00:00:00 grep --color=auto java