Linux查看程序端口占用情况 转载: 原文地址 第一步:根据端口查看PID: netstat -apn | grep pid 最后一栏就是PID/Program name 第二步:根据pid查看进程 ps -aux | grep pid