Linux 关闭对端口的监听
就两个步骤:
- 查看当前机器是否开启该端口;
- Kill 关闭;
# netstat -anp | grep 【端口号】
[root@test-01 ~]# netstat -anp | grep 6665
tcp 0 0 0.0.0.0:6665 0.0.0.0:* LISTEN 1206503/nc
tcp6 0 0 :::6665 :::* LISTEN 1206503/nc
[root@test-01 ~] ~]# kill -9 1206503
posted on 2020-08-17 17:51 Mysticbinary 阅读(1155) 评论(0) 编辑 收藏 举报