mac 终端命令总结

这个总结是持续更新的

1.查看mac下的进程占用情况

lsof -i     #查看全部端口
lsof -i :8123 #查看具体的端口

mac 终端命令总结

2.关闭端口进程号

sudo kill -9 PID