mac上如何查看某端口号被哪些程序占用

2025-02-06 00:57:49
推荐回答(1个)
回答1:

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