比如 先查看 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
全部杀完了... 杀死进程方法有很多种,,,,,我这个 只是其中的一种
centos杀死进程命令
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Centos系统杀死僵尸进程
Centos系统杀死僵尸进程
Centos系统杀死僵尸进程 -
Linux命令:批量杀死java进程、批量杀死nodejs进程
【代码】Linux命令:批量杀死java进程、批量杀死nodejs进程。
linux java python -
linux基础命令-杀死进程
需求:Docker-Registry总是重启,然后一看还有5000端口进程没杀死,但是找不到线程
docker 重启 管理员权限 -
Linux基础命令---杀死进程killall
killall killall可以根据名字来杀死进程,它会给指定名字的所有进程发送信息。如果没有指定信号名,则发
Linux killall bash 正则表达式 斜杠 -
命令行杀死window进程
命令行杀死window进程打开命令行:输入netstat -ano|findstr 8080 查看监听代号:例如 6Services.ms
window进程 kill 命令行 mysql ruby -
杀死进程
杀死进程
Linux