6.5查看防火墙的状态:

1
[linuxidc@localhost ~]$service iptable status

  显示结果:

1
2
3
4
5
[linuxidc@localhost ~]$service iptable status
Redirecting 
to 
/bin/systemctl status  iptable.service
● iptable.service
 
Loaded: 
not
-found (Reason: 
No 
such file 
or 
directory)
 
Active: inactive (dead)  
--表示防火墙已经关闭

    CentOS 6.5关闭防火墙

1
2
[root@localhost ~]#servcie iptables stop  
--临时关闭防火墙
[root@localhost ~]#chkconfig iptables 
off 
--永久关闭防火墙