1. The tomcat server starts and views the command to start the log for the first time
In.. /bin folder, enter the ./startup.sh;tail-f. /logs/catalina. out
2, need to restart the server when
In.. /bin directory ./shutdown.sh When the Tomcat service cannot be closed
Use Ps-ef | grep project name
View the process number of the project
For example:
pe-ef |grep Tomcat output is as follows
Sun 5144 1 0 10:21 pts/1 00:00:06/java/jdk/bin/java-djava.util.logging.manager= Org.apache.juli.classloaderlogmanager-djava.endorsed.dirs=/java/tomcat/common/endorsed-classpath:/java/tomcat/ bin/bootstrap.jar:/java/tomcat/bin/commons-logging-api.jar-dcatalina.base=/java/tomcat-dcatalina.home=/java/ Tomcat-djava.io.tmpdir=/java/tomcat/temp org.apache.catalina.startup.Bootstrap Start
Then 5144 is the process number PID = 5144
At this point, you can use kill-9 5144 to completely kill Tomcat.
Linux boot, shutdown, and shutdown of the failed kill process