Linux boot, shutdown, and shutdown of the failed kill process

Source: Internet
Author: User
Tags tomcat server

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

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.