MAC查看端口占用情况

命令 lsof -i tcp:port  (port替换成端口号,比如3000)可以查看该端口被什么程序占用,并显示PID

 

 

 
posted @ 2017-10-23 15:27  zhangyfr  阅读(567)  评论(0)    收藏  举报