Linux查询端口占用情况的命令

查看某一端口的占用情况

  1. lsof -i:端口号
  2. netstat -anp|grep 端口号
  3. netstat -nultp|grep 端口号
  4. netstat -tunlp|grep 端口号

查询端口是否被占用

  1. netstat -tunlp
  2. netstat -nultp
  3. netstat -anp

猜你喜欢

转载自blog.csdn.net/besto229/article/details/79878178