方法一:lsof
安装lsof
yum install lsof
lsof -i 查看端口占用情况
lsof -i:443
kill 5811
方法二:netstat -npm|grep 端口号(但是这个工具在centos7 中我没有装成功)