Installation on Windows start ZooKeeper service

Copyright notice: reproduced please specify, thank you https://blog.csdn.net/qrainly/article/details/90247581

First, download the installation package ZooKeeper

This example is a version 3.4.13

  1. Download the official website address: ZooKeeper download link
  2. Decompression can be downloaded, extract the directory as follows
    Unzip directory

Second, the configuration ZooKeeper

  1. In the new peer extracted directory data / logs folder used to store the relevant data and log ZooKeeper
    Here Insert Picture Description
  2. / Conf directory under the file into the installation folder, create a copy zoo_sample.ctg zoo.ctg file, and read as follows
# The number of milliseconds of eachtick  心跳间隔毫秒每次
tickTime=2000
# The number of ticks that the initial  初始化连接超时次数
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and gettinganacknowledgement
syncLimit=5
# the directory where the snapshotisstored.  //镜像数据位置
dataDir=E:\\zookeeper\\data
#日志位置
dataLogDir=E:\\zookeeper\\logs
# the port at which the clientswillconnect  客户端连接的端口
clientPort=2181

Third, start the service

  1. Go to the bin directory under the installation directory, double-click zkServer.cmd
    Here Insert Picture Description
  2. Double-click the connection test zhCli.cmd
    Here Insert Picture Description

Continuously updated in ...

Guess you like

Origin blog.csdn.net/qrainly/article/details/90247581