1:
先查看该端口是哪个进程占用了
[root@localhost ~]# lsof -i:80
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
java 22451 root 74u IPv6 3535878 TCP 10.22.43.52:http->10.22.161.112:vpnz (ESTABLISHED)
java 22451 root 115u IPv6 3535977 TCP 10.22.43.52:http->10.22.161.118:toad (ESTABLISHED)
java 22451 root 125u IPv6 3535994 TCP 10.22.43.52:http->10.22.161.120:optika-emedia (ESTABLISHED)
java 22451 root 151u IPv6 3536546 TCP 10.22.43.52:http->10.22.161.120:fiorano-msgsvc (ESTABLISHED)
2:杀死所有进程并查看
[root@localhost /]# kill -9 22451
[root@localhost /]# lsof -i:80