ZooKeeper是一个分布式的,开放源码的分布式应用程序协调服务,是Google的Chubby一个开源的实现,是Hadoop和Hbase的重要组件。它是一个为分布式应用提供一致性服务的软件,提供的功能包括:配置维护、名字服务、分布式同步、组服务等。
南京今天的天气还是蛮热的 看看dubbo 阿里的分布式框架吧。 在注册的时候用到了zookeeper 后来就到官网下载 然后直接zkServer.cmd运行 但是老是闪退。 看配置信息 然后总结出了一些结论 。下面就介绍一下zookeeper的安装吧。
在官网下载最新的zookeeper 的压缩包。 点击下载ZooKeeper
解压到你的电脑 比较合适的位置。 我这边是 D:\Apache\
然后进去D:\Apache\zookeeper-3.3.6\conf这个文件夹下面有一个zoo_sample.cfg的文件 ,用记事本打开。复制里面的内容。
内容如下:
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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 安装 windows环境http://blog.csdn.net/morning99/article/details/40426133