美文网首页
查看一个进程使用的端口

查看一个进程使用的端口

作者: Barry_Xu | 来源:发表于2020-03-26 10:32 被阅读0次
    $ sudo lsof -aPi -p 555
    
    -p to specify the PID number;
    -i to display only network devices;
    -a to AND two conditions above (otherwise they will be ORed);
    -P to display port numbers (instead port names by default).
    

    相关文章

      网友评论

          本文标题:查看一个进程使用的端口

          本文链接:https://www.haomeiwen.com/subject/mspquhtx.html