欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

Linux小技巧分享之如何重新启动tomcat

程序员文章站 2022-04-06 22:24:41
1. 进入linux系统下tomcat的bin目录, 比如:cd /usr/local/apache-tomcat-7.0.42/bin 2. 关闭一下tomcat服务...

1. 进入linux系统下tomcat的bin目录,

比如:cd /usr/local/apache-tomcat-7.0.42/bin

2. 关闭一下tomcat服务,特别是已经启动的情况下,只不过有些异常

  ./shutdown.sh

3. 检查一下tomcat是否确实已经关闭

ps -ef|grep java 

假如出现以下类似的提示,表示tomcat已经关闭

root     30248 30113  0 10:00 pts/0    00:00:00 grep java

4. 最后重新启动tomcat

./startup.sh