Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that the linux process cannot be killed?

Shulou Source: shulou.com Published: 2022-06-02 23:17:12 09月22日 Update

How to solve the problem that the linux process can not be killed? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

In liunx, sometimes use the command ps-ef | grep process name to check the process pid number. When you kill a process, you can't kill it, because it is possible to kill the child process rather than the parent process, and the whole process tree is not dead. In response to this situation, I struggled to find an order to solve this problem.

The way to view the pid of the process tree is:

Ps-A | grep-I process name

Then the command to kill the process is:

Kill process pid number

Or use the command:

Kill-9 process pid number

Ps kills the process, the command that kills the process according to its name:

Pkill process name after reading the above, do you have the solution to the problem that linux process can not be killed? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Process problem command method content more at a loss for this reason situation skill time sometimes article experience industry information information channel channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi Shulou Information Xiaomi Shulou Tech Info