MacOS: 找到被占用的端口并释放

1. sudo lsof -i :<port number>
2.
kill -9 <PID>
原文地址:https://www.cnblogs.com/ilovewindy/p/12175135.html