1.使用lsof lsof -i:端口号查看某个端口是否被占用 2.使用netstat 使用netstat -anp|grep 80 转自 http://blog.youkuaiyun.com/hsd2012/article/details/51384907