企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 防火墙 [TOC] ## centos6.8 > 注:以下是防火墙的基本操作命令,可能但不一定适用于所有centos系统 - 查询防火墙状态 ``` service iptables status ``` - 停止防火墙 ``` service iptables stop ``` - 启动防火墙 ``` service iptables start ``` - 重启防火墙: ``` service iptables restart ``` - 永久关闭防火墙: ``` chkconfig iptables off ``` - 永久关闭后启用: ``` chkconfig iptables on ``` ## centos7 - 永久关闭防火墙 ``` sudo systemctl disable firewalld ``` - 查看防火墙状态 ``` sudo systemctl status firewalld ``` - 打开防火墙 ``` sudo systemctl start firewalld ``` - 关闭防火墙 ``` sudo systemctl stop firewalld ```