Linux: netstat -nlp MacOSX: netstat -an 用来查看网络链接情况。 转载于:https://www.cnblogs.com/pinganzi/p/5255120.html