干掉僵尸进程
刚才到机器上检查,top命令发现有19个zombie进程,天啊然后 我去查询这些19个僵尸进程都是什么进程
以下是我用ps -ef 的结果
root@db2:~# ps -ef |grep defunct
root 258221478 0 - ? 0:00 <defunct>
root 255301478 0 - ? 0:00 <defunct>
root 197351478 0 - ? 0:00 <defunct>
root 177691478 0 - ? 0:00 <defunct>
root 267961478 0 - ? 0:00 <defunct>
root10151478 0 - ? 0:00 <defunct>
root 287371478 0 - ? 0:00 <defunct>
root 147581478 0 - ? 0:00 <defunct>
root53121478 0 - ? 0:00 <defunct>
root 147721478 0 - ? 0:00 <defunct>
root25551478 0 - ? 0:00 <defunct>
root72631478 0 - ? 0:00 <defunct>
root 110431478 0 - ? 0:00 <defunct>
root 234251478 0 - ? 0:00 <defunct>
root81861478 0 - ? 0:00 <defunct>
root 177841478 0 - ? 0:00 <defunct>
root 138251478 0 - ? 0:00 <defunct>
root 25837 25831 0 10:21:52 pts/1 0:00 grep defunct
root 225561478 0 - ? 0:00 <defunct>
root 205421478 0 - ? 0:00 <defunct>
这些僵尸进程的父进程PPID 都是1478
我只要把这些僵尸进程的父进程 PPID 1478给杀掉,那么这些僵尸进程就自动被杀掉了?
或者,我需要把每个僵尸进程都杀掉,然后也把父进程给杀掉?
preap 1478??这条命令?
1.zombie进程杀不死。
2.可以杀掉其父进程来杀掉zombie进程。
注:zombie进程是已经执行完的进程。只是在内容中有这个记录,它在等待父进程的指令 回复 2# wenhq
哦那我直接杀掉那个父进程试试
页:
[1]