linux下查看本地程序占用的端口

 netstat -apn

结合ps

原文地址:https://www.cnblogs.com/bluejoe/p/5115911.html