Under the Linux system, reboot Tomcat to operate with commands!
First, go to the bin directory under Tomcat
| 1 |
cd/usr/local/tomcat/bin |
Using the Tomcat Close command
To see if Tomcat is shutting down
If the following similar information is displayed, Tomcat is not turned off
| 1 |
root 7010 1 0 Apr19 ? 00:30:13 /usr/local/java/bin/java-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.awt.headless=true-Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat/endorsed-classpath /usr/local/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat-Djava.io.tmpdir=/usr/local/tomcat/temporg.apache.catalina.startup.Bootstrap start |
If you want to kill Tomcat directly, you can use the KILL command to kill the Tomcat process directly.
Then continue to see if Tomcat shuts down
If the following information is present, Tomcat is turned off
| 1 |
root 7010 1 0 Apr19 ? 00:30:30 [java] <defunct> |
Finally, start Tomcat
Note: Log in to the Linux system using the root user, enter the Tomcat directory correctly, and then boot Tomcat after you have determined that Tomcat is closed, otherwise the newspapers port will be occupied abnormally.
Linux under Tomcat reboot