博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Windows下Zookeeper简单配置
阅读量:7242 次
发布时间:2019-06-29

本文共 1247 字,大约阅读时间需要 4 分钟。

hot3.png

下载安装 

  • 下载安装包zookeeper-3.4.8.tar.gz
  • 解压zookeeper-3.4.8.tar.gz,生成文件夹zookeeper-3.4.8
  • 进入zookeeper-3.4.8文件夹的conf目录,拷贝zoo_sample.cfg为zoo.cfg
  • 修改zoo.cfg
  • # The number of milliseconds of each ticktickTime=2000# The number of ticks that the initial # synchronization phase can takeinitLimit=10# The number of ticks that can pass between # sending a request and getting an acknowledgementsyncLimit=5# the directory where the snapshot is stored.# do not use /tmp for storage, /tmp here is just # example sakes.dataDir=e:\\zookeeper-3.4.8\\datadataLogDir=e:\\zookeeper-3.4.8\\log# the port at which the clients will connectclientPort=2181# the maximum number of client connections.# increase this if you need to handle more clients#maxClientCnxns=60## Be sure to read the maintenance section of the # administrator guide before turning on autopurge.## http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance## The number of snapshots to retain in dataDir#autopurge.snapRetainCount=3# Purge task interval in hours# Set to "0" to disable auto purge feature#autopurge.purgeInterval=1

    启动

  • 启动Zookeeper,双击bin目录下的zkServer.cmd
  • 184144_brTa_39617.png 
  • 客户端测试

  • 客户端连接,查看数据路径,双击bin目录下zkCli.cmd
  • 184437_1JWk_39617.png 就可以看到目前Zookeeper数据的存储路径为/zookeeper/quota。

转载于:https://my.oschina.net/Listening/blog/682128

你可能感兴趣的文章
内存池的原理及实现
查看>>
phpqrcode生成动态二维码简单实例
查看>>
python-函数
查看>>
Scrapy反爬
查看>>
(十三) 整合spring cloud云架构 - SSO单点登录之OAuth2.0 根据token获取用户信息(4)
查看>>
Java-日历表
查看>>
GLPaint in OpenGL ES 2.0
查看>>
CocoaAsyncSocket学习
查看>>
关于form.item不兼容的问题
查看>>
poj Supermarket
查看>>
常用变量的获取
查看>>
洛谷9月月赛round2
查看>>
Lazy的SDL教程 翻译----Lesson 22 Timing
查看>>
C#调用带输出参数的mysql存储过程
查看>>
两个序列中位数算法c语言,PAT 2-13 两个有序序列的中位数(C语言实现)
查看>>
android 上下左右滑动的表格,适用小程序的表格table,冻结行,冻结列,可左右,上下滑动...
查看>>
HTML表单滚动文本框,table表格,form表单,select下拉列表,textarea文本域
查看>>
【原创】mysql 错误缓冲堆栈
查看>>
SystemCenter2012SP1实践(25)VMM下HyperV的高可用(上)
查看>>
oracle vm的虚拟机windows启动不了的处理方式
查看>>