netstat -atnp netstat -nultp
查看端口占用情况
lsof -i:80
查看某个服务的端口
netstat -atnp|grep mysql netstat -rn == route -n