mac端口被占用,处理方案

1.查看端口被哪个程序占用

  sudo lsof -i tcp:port

2.看到进程的PID,可以将进程杀死。

  kill PID

你可能感兴趣的:(mac端口被占用,处理方案)