from:http://www.cnblogs.com/zhangzhibin/p/6231870.html
centos6和centos7防火墙的关闭
CentOS6.5查看防火墙的状态:
1
|
[zh@localhost ~]$service iptable status
|
显示结果:
Redirecting
to
/bin/systemctl status iptable.service
Loaded:
not
-found (Reason:
No
such file
or
directory)
Active: inactive (dead)
--表示防火墙已经关闭
CentOS 6.5关闭防火墙
CentOS 7.2关闭防火墙
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤。
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
--state
running