centos 6.5 关闭防火墙

 CentOS 6.5关闭防火墙

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

查看防火墙的状态为

service iptables status

(1)永久关闭SELinux(否则samba可能不能访问)
修改配置文件
# vi /etc/selinux/config
将SELINUX=enforcing改为SELINUX=disabled
需要重启机器生效!!

(2)关闭防火墙

开启: chkconfig iptables on

关闭: chkconfig iptables off

原文地址:https://www.cnblogs.com/kebibuluan/p/9153726.html