在搭建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

本文详细记录了解决CentOS7中Ambari服务无法使用的问题过程,通过禁用防火墙来解决Ambari服务无法启动的情况。在CentOS7中,防火墙被替换为firewall,通过`firewall-cmd --state`查看其状态,发现防火墙正在运行。为了解决问题,操作者使用`systemctl mask firewalld`将防火墙服务隐藏,并通过`systemctl stop firewalld`命令关闭防火墙服务,最终Ambari服务恢复正常工作。
1万+

被折叠的 条评论
为什么被折叠?



