centos6
1、关闭防火墙
service iptable stop
2、查看防火墙状态
[root@localhost bin]# service iptables status
iptables: Firewall is not running.
[root@localhost bin]#
3、永久关闭防火墙
chkconfig iptables off
4、打开防火墙
service iptable start
centos6
1、关闭防火墙
service iptable stop
2、查看防火墙状态
[root@localhost bin]# service iptables status
iptables: Firewall is not running.
[root@localhost bin]#
3、永久关闭防火墙
chkconfig iptables off
4、打开防火墙
service iptable start