ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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 ```