关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决

一般在使用bin/zkServer.sh start命令运行zookeeper后都会显示启动成功:

JMX enabled by default
Using config: /data/programfiles/zookeeper-3.4.5/bin/…/conf/zoo.cfg
Starting zookeeper … STARTED

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第1张图片

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第2张图片

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第3张图片

但用命令行输入bin/zkServer.sh status查看结果时,却显示如下信息:

JMX enabled by default
Using config: /data/programfiles/zookeeper-3.4.5/bin/…/conf/zoo.cfg
Error contacting service. It is probably not running.

 

这时Zookeeper 状态不对

出现问题的原因可能是: 关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第4张图片

我的问题解决:使用systemctl stop firewalld.service命令关闭防火墙!

关闭后三台虚拟机全部启动,再查看分别状态,Mode显示成功

虚拟机下Linux关闭防火墙的相关命令:

Centos7
查看防火墙状态
firewall-cmd --state

关闭防火墙
systemctl stop firewalld.service

永久关闭
systemctl disable firewalld.service

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第5张图片

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第6张图片

关于Zookeeper配置status状态出现Error contacting service. It is probably not running.问题的解决_第7张图片 记录下我上传的第一个问题解决,希望对出现同样问题的你有些许帮助,这是我莫大的快乐,加油!

你可能感兴趣的:(java-zookeeper,zookeeper,linux)