Linux如何殺掉殭屍程式
執行top命令檢視:
[root@idb4 data]# top
top - 14:03:25 up 64 days, 20:47, 4 users, load average: 3.79, 4.28, 3.74
Tasks: 610 total, 1 running, 608 sleeping, 0 stopped, 1 zombie
Cpu(s): 17.6%us, 1.2%sy, 0.0%ni, 81.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 65924464k total, 64499740k used, 1424724k free, 13512k buffers
Swap: 131071992k total, 0k used, 131071992k free, 15905380k cached
上面結果看到有1個zombie程式,代表殭屍程式。
[root@idb4 data]# ps -ef | grep defunct | more
gdm 3695 3694 0 Apr01 ? 00:00:00 [gconf-sanity-ch] <defunct>
root 8971 140945 0 14:02 pts/2 00:00:00 grep defunct
UID PID PPID …
—————————————————————
PPID就是父程式的pid號,本例為3694
可以使用kill -9 6757來殺掉父程式:
[root@idb4 data]# kill -9 3694
然後透過ps -A | grep defunct驗證一下效果:
[root@idb4 data]# ps -ef | grep defunct
root 9044 140945 0 14:02 pts/2 00:00:00 grep defunct
[root@idb4 data]# top
top - 14:03:25 up 64 days, 20:47, 4 users, load average: 3.79, 4.28, 3.74
Tasks: 610 total, 1 running, 608 sleeping, 0 stopped, 1 zombie
Cpu(s): 17.6%us, 1.2%sy, 0.0%ni, 81.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 65924464k total, 64499740k used, 1424724k free, 13512k buffers
Swap: 131071992k total, 0k used, 131071992k free, 15905380k cached
上面結果看到有1個zombie程式,代表殭屍程式。
[root@idb4 data]# ps -ef | grep defunct | more
gdm 3695 3694 0 Apr01 ? 00:00:00 [gconf-sanity-ch] <defunct>
root 8971 140945 0 14:02 pts/2 00:00:00 grep defunct
UID PID PPID …
—————————————————————
PPID就是父程式的pid號,本例為3694
可以使用kill -9 6757來殺掉父程式:
[root@idb4 data]# kill -9 3694
然後透過ps -A | grep defunct驗證一下效果:
[root@idb4 data]# ps -ef | grep defunct
root 9044 140945 0 14:02 pts/2 00:00:00 grep defunct
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15498/viewspace-2140291/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 什麼是殭屍程式,如何找到並殺掉殭屍程式?
- 殺死殭屍程式
- 檢視並殺死殭屍程式
- Linux 殭屍程式Linux
- linux批量殺掉程式linux批量殺掉程式Linux
- 檢視 Linux 殭屍程式Linux
- Linux殭屍程式處置Linux
- 殭屍程式
- Linux中殭屍程式是什麼意思?怎麼檢視殭屍程式?Linux
- Linux 中殭屍程式詳解Linux
- Linux 系統中殭屍程式Linux
- Linux系統殭屍程式詳解Linux
- fork和殭屍程式
- 【系統】 殭屍程式
- 殭屍程式,孤兒程式
- 殭屍程式和孤兒程式
- 什麼是殭屍程式以及如何處理
- Linux 效能優化之 CPU 篇 ----- 殭屍程式Linux優化
- Linux程式管理、程式建立、執行緒實現、殭屍程式Linux執行緒
- 關於LINUX殭屍程式的出現和原理Linux
- Perl程式:殭屍程式和孤兒程式
- 如何使用xkill命令殺掉Linux程式/未響應的程式Linux
- 子程式、孤兒程式,殭屍程式, init程式
- Go Exec 殭屍與孤兒程式Go
- Linux上的殭屍跑得比Windows快LinuxWindows
- 物聯網教程Linux系統程式設計——特殊程式之殭屍程式Linux程式設計
- JaCoCo助您毀滅線上殭屍程式碼
- linux 下粗暴殺掉 oracleLinuxOracle
- Oracle徹底殺掉程式Oracle
- 殺掉鎖死的程式
- linux系統程式設計之程式(三):程式複製fork,孤兒程式,殭屍程式Linux程式設計
- iOS殭屍物件之研究iOS物件
- 如何殺掉Teradata的sessionSession
- Linux 下 popen 函式引起的殭屍程式 defunct 以及解決辦法Linux函式
- ORACLE中殺掉一個程式Oracle
- 殺掉aspnet_wp程式
- 【sqlserver】殺掉所有死鎖程式SQLServer
- 什麼是殭屍網路