The tomcat port number and process under Linux

Source: Internet
Author: User

The tomcat port number and process under Linux

1. View the Tomcat process:

Ps-aux | grep tomcat (or Ps-ef | grep Tomcat is OK)

You can see that there are now two Tomcat processes running, one with a PID of 9974 and another PID of 23422.

2, view the port number according to the process:

sudo netstat-naop | grep 23422

This is the port number to view the process occupied by PID 23422;

You can see that the 9300 and 9399 port numbers are occupied, where 9399 is the port number of the Tomact server's shutdown, and 9300 is the connector port number of the Tomcat Catalina service.

3, view the process according to the port number:

sudo lsof-i:9300

You can view the process that occupies the port number. Online says use Ps-aux | grep 9300 Similar to the command, the result does not seem to have the information we need.

4, kill the process according to the process number:

Kill-9 23422

Kill the Tomcat process with process number 23422;

The tomcat port number and process under Linux

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.