如何关闭CentOS的端口

 时间:2026-02-15 19:17:05

1、在终端中输入命令:

/sbin/iptables -I INPUT -p tcp --dport 14000 -j DROP

如何关闭CentOS的端口

2、保存修改,输入命令:

/etc/init.d/iptables save

如何关闭CentOS的端口

3、重启防火墙,修改生效,输入命令:

service iptables restart 

如何关闭CentOS的端口

4、查看端口状态,输入命令:

/etc/init.d/iptables status

如何关闭CentOS的端口

  • Windows 2000 Server如何启用自动更新
  • win10如何设置服务器暂停会话前所需空闲时间量
  • Windows Server 2008 R2查看所有Microsoft服务
  • 从注册表关闭Windows update
  • 用DOS怎么查看用户账号
  • 热门搜索
    青春手抄报内容 小学生春节手抄报大全 一年级数学手抄报内容 历史手抄报花边 小学四年级英语手抄报 小学法制教育手抄报 感恩的心手抄报资料 法制教育的手抄报 消防安全教育手抄报 电子版手抄报怎么做