Home  >  Article  >  Operation and Maintenance  >  What to do if the Linux process cannot be killed

What to do if the Linux process cannot be killed

藏色散人
藏色散人Original
2019-11-13 09:29:057396browse

What to do if the Linux process cannot be killed

#What should I do if the Linux process cannot be killed?

In liunx, sometimes the command ps -ef|grep process name is used to check the process pid number. When killing the process, the process cannot be killed because the child process may be killed instead of the parent process. The entire The process tree is not dead. In response to this situation, I struggled to find an order to solve this problem.

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

ps -A|grep -i 进程名

Then the command to kill the process is:

kill 进程pid号 

or use the command:

kill -9 进程pid号

ps to kill Dead process, the command to kill the process according to the process name:

pkill 进程名

Recommended: "Linux Tutorial"

The above is the detailed content of What to do if the Linux process cannot be killed. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn