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 downThe following similar information appears indicating that Tomcat is closed
Root 2663 2646 0 Dec02? 00:06:10 Java-jar/usr/share/jenkins/jenkins.war
Root 20635 20570 0 20:53 pts/0 00:00:00 grep--color=auto java
Finally, start Tomcat
./startup.sh
PS (Xshell5 copy of key combination is Ctrl+insert not CTRL + V)
Linux under Tomcat reboot