zookeeper中Error contacting service. It is probably not running.

[root@localhost conf]# /usr/local/solr-cloud/zookeeper01/bin/zkServer.sh status
JMX enabled by default
Using config: /usr/local/solr-cloud/zookeeper01/bin/../conf/zoo.cfg
Error contacting service. It is probably not running.

 

原因之一:在修改/usr/local/solr-cloud/zookeeper01/conf 中文件zoo.cfg时

  在最后一行添加时

server.1=192.168.20.7:2881:3881  #2881是。。。。
server.2=192.168.20.7:2882:3882
server.3=192.168.20.7:2883:3883

添加了注释#2881是。。。。,导致失败!!!

posted @ 2017-04-12 13:02  mslog  阅读(1738)  评论(0编辑  收藏  举报