windows下安装配置zookeeper

下载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
成功

猜你喜欢

转载自qiaosen.iteye.com/blog/2411569
今日推荐