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

 

posted on 2018-06-08 08:03  luzhouxiaoshuai  阅读(140)  评论(0编辑  收藏  举报

导航