如何关闭和开启Centos7防火墙

 时间:2026-02-14 02:25:11

1、首先查看防火墙的启动状态,显示是:not running,是关闭的状态,开启和关闭防火墙

firewall-cmd –state

systemctl start firewalld.service

systemctl stop firewalld.service

如何关闭和开启Centos7防火墙

2、查看自启动的服务,左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动。

systemctl list-unit-files

如何关闭和开启Centos7防火墙

3、前面为临时打开关闭防火墙,reboot重启电脑后又会恢复成开启的状态,如果是想重启后防火墙还是处于关闭的状态,就可以使用命令。disable是开启不启动,enable是开启自启动。

systemctl list-unit-files | grep firewalld

systemctl disable firewalld.service

systemctl enable firewalld.service

如何关闭和开启Centos7防火墙

4、查看防火墙iptables的配置文件。

如何关闭和开启Centos7防火墙

  • 平板巧用WinNTSetup+GImageX+efi引导修复工具
  • 在Windows Server 2012中搭建WEB(WWW)服务器
  • Win10家庭版如何启用本地组策略
  • 帝国神话怎么把犀牛驯服
  • windowsserver2003安装sqlserver2000数据库教程
  • 热门搜索
    厦门同安旅游 旅游鞋品牌大全 51you旅游网 黑龙江省旅游局政务网 韩国旅游签证办理流程 大学生旅游网 雅安宝兴旅游 汉源旅游景点 郑州好玩的旅游景点 九华山旅游景点