1、关闭防火墙的自运行
[root@hadoop Desktop]# chkconfig iptables off
2、查看防火墙关闭情况
[root@hadoop Desktop]# chkconfig --list | grep iptablesiptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
3、关闭防火墙
[root@hadoop Desktop]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@hadoop Desktop]# service iptables status
iptables: Firewall is not running.