Linux系统中僵尸进程的查看与删除

“僵尸进程”的查看与删除

查看僵尸进程

ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]'

批量删除僵尸进程

ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}' | xargs kill -9

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39599464/article/details/114525016