Turn from: How to find the zombie process and kill it, you can't kill it. To view the parent process and kill it
Find zombie processes with PS and grep commands
#ps-A-ostat,ppid,pid,cmd | Grep-e ' ^[zz] '
Command annotations:
-A parameter lists all processes
-O Custom output fields We set the Display field to stat (status), Ppid (process parent ID), PID (process id), cmd (command) four parameters
Because the process of Z or Z is a zombie process, we use grep to grab the stat state for the ZZ process
The operating results are as follows
Z 12334 12339/path/cmd
At this point, we can use kill-hup 12339来 to kill this zombie process.
After running, you can run Ps-a-ostat,ppid,pid,cmd | Grep-e ' ^[zz] ' to confirm that the zombie process has been killed
If the kill child process is not valid, you can try to kill its parent process to resolve the problem, such as the parent process PID is 12334, then we run
#kill-hup 12334
To solve the problem.
You can typically find dynamic process tables with the top command
#top
Where Zombie is the zombie process
Turn from: How to find the zombie process and kill it, you can't kill it. To view the parent process and kill it
How to find a zombie process and kill it, you can't kill it. To view the parent process and kill it