Linux 查看端口占用并杀掉
比如查看80端口具体被那个进程占用

[root@104 ~]# lsof -i :80
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
python  14002 root    3u  IPv4 1505238      0t0  TCP *:http (LISTEN)
python  14002 root    4u  IPv4 1815799      0t0  TCP 104.194.82.232.16clouds.com:http->41.230.3.145:48056 (ESTABLISHED)
[root@104 ~]# kill -9 14002

最后kill-9 pid
kill -9 14002