当前位置: 代码迷 >> 综合 >> zookeeper客户端启动报Connection refused
  详细解决方案

zookeeper客户端启动报Connection refused

热度:89   发布时间:2024-02-08 20:22:49.0

启动zookeeper客户端出现如下信息:

2020-08-07 17:32:29,785 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1112] - Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)

2020-08-07 17:32:29,887 [myid:localhost:2181] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1244] - Socket error occurred: localhost/127.0.0.1:2181: Connection refused

 

原因:

服务端没启动

服务端启动命令

cd   zookeeper/apache-zookeeper-3.5.6-bin/bin

./zkServer.sh start

  相关解决方案