本文主要是介绍Linux下,重新启动tomcat,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于Linux下,重新启动tomcat的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!