linux 根据进程名查看其占用的端口

 

linux 根据进程名查看其占用的端口

 pasting

  1. $ netstat -nap | grep pid    //查看进程ID 所占的端口
netstat -lnp  查看端口所在的进程
will not be shown, you would have to be root to see it all.) tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN      8604/java 
原文地址:https://www.cnblogs.com/jing1617/p/7298619.html