查看端口占用

方法一:lsof

安装lsof

yum install lsof

lsof -i 查看端口占用情况

 lsof -i:443

kill 5811

 方法二:netstat -npm|grep 端口号(但是这个工具在centos7 中我没有装成功)

原文地址:https://www.cnblogs.com/yuanzhenliu/p/9125164.html