首页 > 其他 > 详细

zookeeper 安装

时间:2015-06-14 12:36:21      阅读:145      评论:0      收藏:0      [点我收藏+]

南京今天的天气还是蛮热的  看看dubbo 阿里的分布式框架吧。 在注册的时候用到了zookeeper 后来就到官网下载 然后直接zkServer.cmd运行 但是老是闪退。 看配置信息 然后总结出了一些结论 。下面就介绍一下zookeeper的安装吧。

 

在官网下载最新的zookeeper 的压缩包。 点击下载ZooKeeper

解压到你的电脑 比较合适的位置。 我这边是 D:\Apache\

然后进去D:\Apache\zookeeper-3.3.6\conf这个文件夹下面有一个zoo_sample.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=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181

在该目录下新建一个zoo.cfg的文件 打开 把上面的内容粘贴进去。保存。

字段的意思 配置文件的注释里面都有、

zookeeper 安装

原文:http://my.oschina.net/superman158/blog/466510

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!