Linux下查看端口占用情况及关闭

查看指定端口占用情况:

netstat -ap | grep 8080   #8080端口号

关闭端口程序

kill -9 PID号  
原文地址:https://www.cnblogs.com/51ma/p/11649099.html