zookeeper安装和使用 windows/linux环境

阅读更多

下载地址 https://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.5.4-beta/zookeeper-3.5.4-beta.tar.gz

 

Windows下直接解压,进入conf文件夹,复制zoo_sample.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.
# example sakes.
# zk数据存储位置
dataDir=E:\\zookeeper-3.3.6\\data
# zk日志存储位置
dataLogDir=E:\\zookeeper-3.3.6\\log
# the port at which the clients will connect
clientPort=2181

 

进入bin目录,运行zkServer.cmd启动Zookeeper服务。

 

 

 

你可能感兴趣的:(zookeeper安装和使用 windows/linux环境)