这篇文章给大家介绍Windows中怎么安装ZooKeeper服务,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。
一、下载ZooKeeper安装包
本示例用的版本是3.4.13
官网下载地址:ZooKeeper下载链接
下载完解压即可,解压目录如下 
二、配置ZooKeeper
在解压目录同级新建data/logs文件夹,用来存放ZooKeeper的相关数据和日志 
进入安装目录下的/conf文件夹,复制zoo_sample.ctg新建一个zoo.ctg文件,并修改内容如下
# The number of milliseconds of eachtick 心跳间隔毫秒每次
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 gettinganacknowledgement
syncLimit=5
# the directory where the snapshotisstored. //镜像数据位置
dataDir=E:\\zookeeper\\data
#日志位置
dataLogDir=E:\\zookeeper\\logs
# the port at which the clientswillconnect 客户端连接的端口
clientPort=2181
三、启动服务
进入安装目录下的bin目录,双击zkServer.cmd 
双击zhCli.cmd连接测试 
关于Windows中怎么安装ZooKeeper服务就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。