殭屍程式是 帶有括號的
命令
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 程式號
本作品採用《CC 協議》,轉載必須註明作者和本文連結