查看指定端口占用情况:
netstat -ap | grep 8080 #8080端口号
关闭端口程序
kill -9 PID号
Linux下查看端口占用情况及关闭
原文:https://www.cnblogs.com/51ma/p/11649099.html