Linux 结束占用端口的程序

[root@ucit ~]# lsof -i:80
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
java      1839 root   43u  IPv6 113135       TCP *:http (LISTEN)
firefox-b 2758 root   50u  IPv4 117693       TCP ucit:19479->tx-in-f155.1e100.net:http (ESTABLISHED)
[root@ucit ~]# kill -9 1839
[root@ucit ~]# lsof -i:80
[root@ucit ~]#

原文地址:https://www.cnblogs.com/0xcafedaddy/p/4422991.html