1、lsof -i:端口号
2、netstat -tunlp|grep 端口号
这两个命令查看指定端口被哪个进程占用的情况
Linux如何查看端口被哪个进程占用?
原文:https://www.cnblogs.com/qiaoli0726/p/10166523.html