您的位置:首页 > 运维架构 > Linux

CentOS7 关闭防火墙

2015-11-23 19:50 555 查看
在搭建Ambari中发现Ambari服务无法使用,觉得是防火墙的原因。记录下

Centos7中防火墙变为了firewall

1 查看防火墙状态

[root@centos01 ~]# firewall-cmd --state

running

2 果然是运行的,于是就想disabled防火墙服务

[root@centos01 ~]# systemctl mask firewalld

ln -s '/dev/null' '/etc/systemd/system/firewalld.service'

3 然后关闭防火墙

[root@centos01 ~]# systemctl stop firewalld

4 最后检查防火墙服务,发现已经关闭了

[root@centos01 ~]# firewall-cmd --state

not running

然后Ambari服务就正常工作了

参考文献:http://www.centoscn.com/CentOS/2015/0313/4877.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: