查看 Linux 僵尸进程

僵尸进程是 带有括号的

命令
pstree -ap|grep php

|-php-fpm7.2,1358                      
  |   |-php-fpm7.2,1624                                                            
  |   `-php-fpm7.2,1633                                                            
  |   |           `-php,2502 process.php
  |   |               |-(php,2503)
  |   |               |-(php,2504)
  |   |               `-(php,2505)

查看命令

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

vagrant@homestead:~$ ps -A -o stat,ppid,pid,cmd | grep -e '^[zZ]'
Z+    2502  2503 [php] <defunct>
Z+    2502  2504 [php] <defunct>
Z+    2502  2505 [php] <defunct>

kill -HUP 进程号

讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!