Mysticbinary

Linux 关闭对端口的监听

就两个步骤:

  1. 查看当前机器是否开启该端口;
  2. 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编辑  收藏  举报

导航