安装
下载地址:Apache ZooKeeper
我下载的版本:zookeeper-3.4.12
下载后,解压
配置
1、 在D:\zookeeper-3.4.12文件夹中创建一个“data”文件夹和“log”文件夹
2、 复制zoo_sample.cfg,改名:zoo.cfg
修改zoo.cfg文件
# The number of milliseconds of each tick
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 getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
#dataDir=/tmp/zookeeper
dataDir=D:\zookeeper-3.4.12\data
dataLogDir=D:\zookeeper-3.4.12\log
# the port at which the clients wil