sudo netstat -anp |grep [port] 或 lsof -i:[port] ps:l是小写的L 转载于:https://www.cnblogs.com/longmenzhitong/p/11608365.html