好比 先查看 httpd 進程
ps aux |grep httpd
[root@moyea309 init.d]# ps aux |grep httpd
root 2091 0.0 0.1 5488 2832 ? Ss 17:19 0:00 /web/apache//bin/httpd -k restart
daemon 2475 0.0 0.1 283220 2256 ? Sl 17:45 0:00 /web/apache//bin/httpd -k restart
daemon 2476 0.0 0.1 283220 2260 ? Sl 17:45 0:00 /web/apache//bin/httpd -k restart
daemon 2477 0.0 0.1 283220 2260 ? Sl 17:45 0:00 /web/apache//bin/httpd -k restart
root 2738 0.0 0.0 5500 736 pts/0 S+ 17:56 0:00 grep httpd
這個就是 apache 的全部進程
咱們能夠用 kill -9 加進程ID 以下
[root@moyea309 init.d]# kill -9 2091
[root@moyea309 init.d]# kill -9 2475
[root@moyea309 init.d]# kill -9 2476
[root@moyea309 init.d]# kill -9 2477
[root@moyea309 init.d]# ps aux |grep httpd
root 2740 0.0 0.0 5500 732 pts/0 S+ 17:58 0:00 grep httpd
所有殺完了... 殺死進程方法有不少種,,,,,我這個 只是其中的一種web