1. Mac 查看后台进程并显示 PID
$ jobs -l
2. Mac 端口占用情况(将 port 改成需要查看的端口号,比如 8080)
$ lsof -i tcp:port
2. 杀死进程,以 PID 为5042为例:
$ kill 5042