yum install lsof 查看80端口被哪个程序占用: lsof -i :80 netstat -an | grep 如:netstat -an | grep 9999:查看9999端口是否被占用