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 
posted on 2017-08-07 13:08  tigerloveapple  阅读(193)  评论(0编辑  收藏  举报