Home > Operation and Maintenance > CentOS > How to check whether tomcat is started under centos

How to check whether tomcat is started under centos

WJ
Release: 2020-06-03 15:42:34
Original
2935 people have browsed it

How to check whether tomcat is started under centos

How to check whether tomcat is started under centos?

First, enter the bin directory under Tomcat

cd /usr/local/tomcat/bin
Copy after login

Use the Tomcat shutdown command

./shutdown.sh
Copy after login

Check whether Tomcat can be shut down

ps -ef|grep
Copy after login

If the following similar information is displayed, it means that Tomcat has not been shut down

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
Copy after login

*If you want to kill Tomcat directly, you can use the kill command to directly kill the Tomcat process

kill -9 7010
Copy after login

Then continue to view Whether Tomcat is shut down

ps -ef|grep java
Copy after login

If the following message appears, it means that Tomcat has been shut down

root      7010     1  0 Apr19 ?        00:30:30 [java]
Copy after login

Finally, start Tomcat

./startup.sh
Copy after login

Related reference:centOS Tutorial

The above is the detailed content of How to check whether tomcat is started under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template