查看一个进程使用的端口
2020-03-26 本文已影响0人
Barry_Xu
$ 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).