1、关闭apache
版本一 /etc/init.d/httpd stop
版本二 /etc/init.d/apache2 stop
2、查看端口80
netstat -anp |gep 80
参数说明:
-p process
-a all
-n 以数字显示地址和端口(否则忽略虚拟机动态ip,127.0.0.1会以localhost显示)
3、进程相关ps
使用权限:所有使用者
使用方式:ps [options] [--help]
说明:显示瞬间行程 (process) 的动态
参数:ps的参数非常多, 在此仅列出几个常用的参数并大略介绍含义
-A 列出所有的进程
-w 显示加宽可以显示较多的资讯
-au 显示较详细的资讯
-aux 显示所有包含其他使用者的行程
添加 |grep xx 过滤用户
杀死进程:kill -s 9 xxx(pid)
原文:http://blog.csdn.net/gugugujiawei/article/details/41831889