SoFunction
Updated on 2025-03-08

Linux tips share how to restart tomcat

1. Enter the bin directory of tomcat under the Linux system.

For example: cd /usr/local/apache-tomcat-7.0.42/bin

2. Close the tomcat service, especially when it has been started, but there are some exceptions

  ./

3. Check if tomcat is indeed closed

ps -ef|grep java 

If the following similar prompt appears, it means that tomcat has been closed

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

4. Finally restart tomcat

./