Mac 端口占用清除命令

253 阅读1分钟

of查询被占用端口号Port的进程id PID

$ sudo lsof -i:Port

杀掉进程

$ sudo kill -9 PID