查看linux中某个端口(port)是否被占用

1.使用lsof
lsof -i:端口号                     查看某个端口是否被占用

2.使用netstat
使用netstat -anp|grep 80

原文地址:https://www.cnblogs.com/jiu0821/p/8543914.html