How to see if Tomcat starts under Linux
Under the Linux system, restart tomcat using commands!
First, go to the bin directory under Tomcat
Cd/usr/local/tomcat/bin
Using the Tomcat Close command
./shutdown.sh
To see if Tomcat is shutting down
Ps-ef|grep Java
If the following similar information is displayed, Tomcat is not turned off
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/temp org.apache.catalina.startup.Bootstrap Start
* If you want to kill Tomcat directly, you can use the KILL command to kill the Tomcat process directly
Kill-9 7010
Then continue to see if Tomcat shuts down
Ps-ef|grep Java
If the following information is present, Tomcat is turned off
Root 7010 1 0 Apr19? 00:30:30 [Java]
Finally, start Tomcat
./startup.sh
How to see if Tomcat starts under Linux