当前位置:首页 » 电脑基础知识

windows下安装配置zookeeper

2018-02-26 09:42 本站整理 浏览(10)

下载zookeeper后解压
在conf目录下创建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.
dataDir=D:\\work\\zookeeper-3.3.6\\data
dataLogDir=D:\\work\\zookeeper-3.3.6\\log
# the port at which the clients will connect
clientPort=2181
进入bin目录启动zkServer.cmd
成功