lsof -i lsof -i:端口号 netstat netstat -tunlp|grep 端口号 查到进程ID之后,使用netstat命令查看其占用的端口 netstat -anp | grep 进程ID