重新启动Linux系统下的Tomcat

sing CATALINA_BASE:   /usr/apache-tomcat-9.0.1
Using CATALINA_HOME:   /usr/apache-tomcat-9.0.1
Using CATALINA_TMPDIR: /usr/apache-tomcat-9.0.1/temp
Using JRE_HOME:        /usr/java/jdk1.8.0_121
Using CLASSPATH:       /usr/apache-tomcat-9.0.1/bin/bootstrap.jar:/usr/apache-tomcat-9.0.1/bin/tomcat-juli.jar

在Linux系统下,重启Tomcat使用命令操作的!

1.首先,进入Tomcat下的bin目录

cd /usr/local/tomcat/bin

2.查看Tomcat是否以关闭

ps -ef|grep java

3.使用Tomcat关闭命令

./shutdown.sh


执行命令,出现如下信息,说明已经关闭成功

sing CATALINA_BASE:   /usr/apache-tomcat-9.0.1
Using CATALINA_HOME:   /usr/apache-tomcat-9.0.1
Using CATALINA_TMPDIR: /usr/apache-tomcat-9.0.1/temp
Using JRE_HOME:        /usr/java/jdk1.8.0_121
Using CLASSPATH:       /usr/apache-tomcat-9.0.1/bin/bootstrap.jar:/usr/apache-tomcat-9.0.1/bin/tomcat-juli.jar

 

4.命令查看Tomcat是否关闭

 ps -ef|grep java

5.最后,启动Tomcat

 ./startup.sh 

 

你可能感兴趣的:(重新启动Linux系统下的Tomcat)