Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to see which process the linux port is occupied by

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly describes how to view linux port is occupied by which process, the text is very detailed, has a certain reference value, interested friends must read!

The method to see which process linux port is occupied: first view the process of the occupied port, and query the process id; then query the process according to the integration id, and view the process details; finally view the directory where the process is located, and operate the process.

How to check which Linux port is occupied:

1. Query the occupied port. The first is the process that needs to enter the command to view the occupied port, netstat -tunpl| grep port number

2. Query the process ID. The above command lists which applications are using this port, and then finds the corresponding process ID,

3. Query the process according to the integration id. If you want to view this process in detail, which process ID is specific, you can view the details of the process by command, ps -ef| grep Process ID

4. View the process details. By executing the above command, you can see the details of the process, as well as the directory where the process exists, the files executed by the process, and other information.

5. Check the directory where you are. Through the ll /proc/process ID/cwd command, you can directly view the directory where the process is located, so you can quickly locate the directory of the process,

7) Process of operation. After looking up his new car catalog, you can perform a series of operations on this application, such as restarting and deleting.

The above is "how to check linux port is occupied by which process" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report