mac电脑端口占用问题的解决 Posted on 2021-08-13 Edited on 2021-08-15 In 电脑相关问题 , Mac电脑 Views: Changyan: Symbols count in article: 114 Reading time ≈ 1 mins. 打开终端,输入sudo lsof -i:被占用的端口号(我这里是4000端口被占用)输入密码查看占用端口进程的PID(我这里是526) 输入指令sudo kill -9 PID,杀死进程,被占用的端口就释放出来 Donate WeChat Pay Alipay