Linux查看端口占用情况

查看已知端口占用情况

bash 复制代码
 netstat -anp | grep 8080

查看具体端口被哪个程序占用

bash 复制代码
lsof -i :8080

参考:Linux查看端口占用情况