lsof 查看端口占用语法格式:
lsof -i:端口号
根据PID kill掉相关进程:
kill -9 端口号
查看端口占用
原文:https://www.cnblogs.com/aididiao/p/12031081.html