Linux under Tomcat reboot

Source: Internet
Author: User

Under Linux system, reboot tomcat to use command to operate!

1. First, enter the bin directory under Tomcat

1 cd /usr/local/tomcat/bin

2. Use Tomcat to close commands

1 ./shutdown.sh

3. Check to see if Tomcat is closed

1 ps -ef|grep java

If the following similar information is displayed, Tomcat is not turned off

12345678 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

4. If you want to directly kill the Tomcat process (process number: 7010), you can use the KILL command

1 kill -9 7010

5. Then continue to see if Tomcat is off

1 ps -ef|grep java

If the following information is present, Tomcat is turned off

1 root      7010     1  0 Apr19 ?        00:30:30 [java] <defunct>

6. Finally, start Tomcat

1 ./startup.sh

  

Linux under Tomcat reboot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.