Linux查看某个端口是否被占用

分享到:
  1. 使用lsof
1lsof -i
2
3lsof -i:80
  1. 使用netstat
1netstat -anp | grep 80