欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

windows下安装配置zookeeper

程序员文章站 2022-03-15 13:49:36
...
下载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
成功