$ 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).
$ 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
网友评论