Windows中怎么安装ZooKeeper服务-成都快上网建站

Windows中怎么安装ZooKeeper服务

这篇文章给大家介绍Windows中怎么安装ZooKeeper服务,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

创新互联专注为客户提供全方位的互联网综合服务,包含不限于网站建设、做网站、渌口网络推广、小程序设计、渌口网络营销、渌口企业策划、渌口品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们最大的嘉奖;创新互联为所有大学生创业者提供渌口建站搭建服务,24小时服务热线:028-86922220,官方网址:www.cdcxhl.com

一、下载ZooKeeper安装包

本示例用的版本是3.4.13

  1. 官网下载地址:ZooKeeper下载链接

  2. 下载完解压即可,解压目录如下 Windows中怎么安装ZooKeeper服务

二、配置ZooKeeper

  1. 在解压目录同级新建data/logs文件夹,用来存放ZooKeeper的相关数据和日志 Windows中怎么安装ZooKeeper服务

  2. 进入安装目录下的/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

三、启动服务

  1. 进入安装目录下的bin目录,双击zkServer.cmd Windows中怎么安装ZooKeeper服务

  2. 双击zhCli.cmd连接测试 Windows中怎么安装ZooKeeper服务

关于Windows中怎么安装ZooKeeper服务就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。


名称栏目:Windows中怎么安装ZooKeeper服务
路径分享:http://kswjz.com/article/igsjjj.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流