kill -9 進程(程式/程序)殺不掉,怎麼辦?
kill -9 進程(程式/程序)殺不掉,怎麼辦?
資料來源: https://mp.weixin.qq.com/s?__biz=MzI4MDEwNzAzNg==&mid=2649447175&idx=2&sn=9b66cc2b5b4adc07b2a80f342db3e470&chksm=f3a27a74c4d5f3623d2aa952e9fa81df720d9b30ef0ff78b65777195e591da3bb12b8e12d625&scene=126&sessionid=1592383178&key=e6152aaf211ea824af64ac7c82ef4172e7c853988ec4abaeded2f3dd83f120e0ef83ebe1e3866ccf2d8cc9cf3ff504d95829ef1f242a6b8f2c1c9407498d0860223c571ea7a7dff7dacd4a92255317fe&ascene=1&uin=MjIwODk2NDgxNw%3D%3D&devicetype=Windows+10+x64&version=62090070&lang=zh_TW&exportkey=Ajf16mwWdHCkSv5YQDOwabE%3D&pass_ticket=K4%2BjqU8Zun%2BDo9jGRWblTl%2Bl%2BGPWlcOd3dKxWabsmvHzuFYehnJhDXC8VQRvNurv
01.找出殭屍進程(程式/程序)
ps -A -ostat,ppid,pid,cmd | grep -e '^[Zz]' #Z 12334 12339 /path/cmd
02.刪除殭屍進程
kill -HUP 12339
03.找出殭屍進程(程式/程序)
ps -A -ostat,ppid,pid,cmd | grep -e '^[Zz]'
04.刪除殭屍進程的父親
kill -HUP 12334