MAC查看端口占用情况

来源:互联网 发布:阿里旺旺for mac 10.9 编辑:程序博客网 时间:2024/05/17 02:11
命令 lsof -i tcp:port  (port替换成端口号,比如6379)可以查看该端口被什么程序占用,并显示PID,方便KILL