centos 杀死进程命令
2013-11-22 09:01
381 查看
比如 先查看 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
全部杀完了... 杀死进程方法有很多种,,,,,我这个 只是其中的一种
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 新建、删除、移动、复制等命令)
- Linux下svn操作文档
- Linux和Unix系统的关系和区别详细介绍
- 我的Linux发行版/桌面环境选择之路
- 在CentOS上安装Hadoop集群
- linux实现数据恢复 extundelete
- Setting Up An iSCSI Environment On Linux
- 每日变更之linux下的文件属性更改及sudo组
- Linux下如何配置IP地址
- 在RHEL 5平台上安装配置arm-linux-gcc
- linux下git与github简单使用
- Linux下Socket相关头文件总结
- windows与linux socket程序的不同
- Ubuntu(Linux)使用Eclipse搭建C/C++编译环境
- Linux常见疑难问答
- Linux下使用GitHub记
- centos 学习总结
- Linux下github使用笔记
- 下载Linux镜像的好地方
- 树莓派 linux 使用 小度wif