MAC查看端口占用状况 命令 lsof -i tcp:port (port替换成端口号,好比6379)能够查看该端口被什么程序占用,并显示PID,方便KILL,一样可使用ps -ef | grep 6379tcp