1.top命令中可以查看是否存在僵尸进程

2.其他查看是否存在僵尸进程的命令:

ps -ef | grep defunct | grep -v grep | wc -l

3.获得父进程及僵尸进程的id:

ps -A -ostat,pid,ppid | grep -e '[zZ]'

4.杀死父进程来终止该僵尸进程:

kill -9 <parent_process_ID>
posted on 2022-10-08 11:24  属于我的梦,明明还在  阅读(56)  评论(0)    收藏  举报