In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
When the network is abnormal in the working environment, the detection is that a server sends data packets abnormally. Using the netstat command to check, it is found that the process state of IptabLex is an abnormal connection. Can not effectively clear, so want to know which directory of this program is in a dead state.
[root@edu-web1 /] # netstat-anp | less
The status of the process in the event of a problem is:
[root@edu-web1 /] ps x
The way to find the startup path of a process is:
1. We can get the PID of the zombie process from the ps command, as in 23347 in the example above
two。 Go to the directory named after the PID under the / proc directory
3. Enter ls-ail, and the exe link in the result corresponds to the full path details of the executable file.
[root@edu-web1 /] ls / proc/ found folder 23347
[root@edu-web1 /] cd / proc/23347 [root@edu-web1 23347] ls-ail
You can find that there is an exception in this connection, and the corresponding application also has problems. The rest is to find a way to delete the corresponding application of this zombie process, which is usually redundant or junk, but rm-f can kill it.
Summary
The above is the linux introduced by the editor to find the full path of the startup program according to the process number PID. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply to you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
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.