查看端口占用

方法一:lsof

安装lsof

yum install lsof

lsof -i 查看端口占用情况

 lsof -i:443

 

kill 5811

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

 

posted @ 2018-06-02 13:19  YoZane  阅读(146)  评论(0编辑  收藏  举报