chun 2011-6-27 15:50
[轉貼][Linux][kill] – process kill 不掉問題
http://sikotec.wordpress.com/2009/12/02/linuxkill-process-kill-%E4%B8%8D%E6%8E%89%E5%95%8F%E9%A1%8C/<br><p>以下有二個 httpd (<span style="color: rgb(153, 204, 0);">20098 17027</span>) 使用 kill -9 或 killall 或 ./apachectl stop 就是殺不掉問題,<br>到最後使用<span style="color: rgb(255, 0, 0);"> kill -18 </span>才殺掉</p><p>[root@server bin]# <span style="color: rgb(255, 0, 0);">ps aux | grep httpd</span><br><span style="color: rgb(153, 204, 0);">root 2383 0.0 0.0 51076 584 pts/2 S+ 11:50 0:00 grep httpd<br>500 17027 0.0 1.6 430628 67628 ? Tl Nov27 0:02 /usr/local/server/bin/httpd -k start -DSSL<br>500 20098 0.0 0.6 380948 26900 ? Tl Oct07 0:01 /usr/local/server/bin/httpd -k start -DSSL</span><br>[root@server bin]# <span style="color: rgb(255, 0, 0);">pidof httpd</span><br><span style="color: rgb(153, 204, 0);">20098 17027</span><br>[root@server bin]# <span style="color: rgb(255, 0, 0);">kill -18 20098 17027</span><br>[root@server bin]# <span style="color: rgb(255, 0, 0);">pidof httpd</span></p><p>[root@server bin]#</p><br>