In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This "Linux system how to view the process id" article, the article sample code introduction is very detailed, with a certain reference value, interested friends must refer to, for the "Linux system how to view the process id", Xiaobian sorted out the following knowledge points, please follow the pace of the editor step by step slowly understand, then let us enter the topic.
1. Check the process occupied by the port 11. Lsof-I: Port number, view the occupancy of a port [root@localhost bin] # lsof-ilsof 8080 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 3511 root 46u IPv6 31351 0t0 TCP *: webcache (LISTEN) COMMAND: name, as described above 8080 is occupied by a java process PID: ID of the process Generally, when you kill a process, it is the PID USER of the specified process: process owner 2.netstat-ntlp: view all current tcp ports
Combined with grep, you can further check the occupancy of specific port numbers netstat-tunlp | grep port numbers, view port occupancy-t, display the relevant options of tcp-u, display the relevant options of udp-n, refuse to display aliases, display all the numbers converted to digits-l, and list only the service status in Listen (monitoring)-p Displays the name of the program that established the link [root@localhost bin] # netstat-tunlp | grep 8080 tcp6 00:: 8080: * LISTEN 3511/java the above result indicates that port 8080 is occupied by a Java process with a process ID of 3511 [root@ops01 ~] # netstat-tunlp | grep 3000 tcp6 00: 3000 : * LISTEN 13298/node / u01/WSS the above results indicate that port 3000 is occupied by a node program with a process ID of 13298. Query process ID 1. Ps-ef according to the program name | grep process name ps-ef shows all processes
UID: process owner PID: process ID PPID: ID C of parent program: percentage of resources used by CPU STIME: system startup time TTY: login terminal location TIME: used CPU time CMD: the name of the instruction issued, such as querying nginx related process status [root@ops01 ~] # ps-ef | grep nginx
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is all the contents of the article "how the Linux system views the process id". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.