命令 lsof -i tcp:port
(port替换成端口号,比如6379)可以查看该端口被什么程序占用,并显示PID,方便KILL
转载于:https://www.cnblogs.com/guoxiaozhong/p/mac-xia-cha-kan-duan-kou-zhan-yong-qing-kuang.html
命令 lsof -i tcp:port
(port替换成端口号,比如6379)可以查看该端口被什么程序占用,并显示PID,方便KILL
转载于:https://www.cnblogs.com/guoxiaozhong/p/mac-xia-cha-kan-duan-kou-zhan-yong-qing-kuang.html