centOS 6关闭防火墙步骤

jianfly.com 2019-01-31 3263次浏览

关闭命令: service iptables stop

永久关闭防火墙:chkconfig iptables off

两个命令同时运行,运行完成后查看防火墙关闭状态

service iptables status

CentOS7查看防火墙状态

firewall-cmd --state

关闭防火墙

systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动