lsof -i tcp:port 如:sudo lsof -i tcp:8080
kill -9 PID 如:sudo kill -9 1234
[Mac Terminal] ___MAC下关闭端口
原文:https://www.cnblogs.com/minost/p/13388830.html