Copyright notice: reproduced please specify, thank you https://blog.csdn.net/qrainly/article/details/90247581
Directory Navigation
First, download the installation package ZooKeeper
This example is a version 3.4.13
- Download the official website address: ZooKeeper download link
- Decompression can be downloaded, extract the directory as follows
Second, the configuration ZooKeeper
- In the new peer extracted directory data / logs folder used to store the relevant data and log ZooKeeper
- / 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
- Go to the bin directory under the installation directory, double-click zkServer.cmd
- Double-click the connection test zhCli.cmd
Continuously updated in ...