端口和进程互查

Mac 通过进程查所占端口: 

lsof -i -P | grep LISTEN | grep 进程

Mac 通过端口查所占进程

 lsof -i:端口
原文地址:https://www.cnblogs.com/dzqdzq/p/14924209.html