sh僵尸进程

一次在服务器上使用top 发现一个僵尸进程

使用ps命令查询看看到底是什么进程
ps -A -o user,pid.ppid,stat,cmd|grep "Z"

查看是登录用户的 sh 进程 defunct 啥意思?
再使用ps查询父进程

看到是一个发送邮件的进程
百度一下说是定时任务的输出导致
使用pstree 查看下

发现确实是cron 定时任务导致
解决方法参考
http://blog.sina.com.cn/s/blog_6226824c01014ee8.html
https://blog.csdn.net/weixin_34417635/article/details/91458082?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.channel_param

posted @ 2020-08-12 10:38  yongqiao  阅读(712)  评论(0)    收藏  举报