Home  >  Article  >  Operation and Maintenance  >  What should I do if the kill command in Linux cannot kill the process?

What should I do if the kill command in Linux cannot kill the process?

WBOY
WBOYOriginal
2022-04-07 15:06:2719455browse

Solution: 1. Enter the "/proc/process number" directory and execute the "cat status" command to query the parent process of the specified process; 2. Use "kill -9 the process number of the parent process" "Delete the parent process; 3. Use "kill process ID" to delete the specified process again.

What should I do if the kill command in Linux cannot kill the process?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if the process cannot be killed by the kill command in Linux

There are two reasons why it cannot be killed: 1. This process is a zombie process 2. This process is a "core state" process.

Solution:

1. Enter the "/proc/process number" directory

You can execute the "cat status" command Query the parent process of the specified process

What should I do if the kill command in Linux cannot kill the process?

#2. Use "kill -9 process number of the parent process" to delete the parent process;

What should I do if the kill command in Linux cannot kill the process?

3. Use “kill process number” to delete the specified process again

What should I do if the kill command in Linux cannot kill the process?

#Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What should I do if the kill command in Linux cannot kill the process?. 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