Zookeeper 在Windows下的安装过程及测试
安装Zookeeper. 在官网http://zookeeper.apache.org/下载zookeeper,apache-zookeeper-3.5.5-bin
- 解压zookeeper-3.4.6至D:machinezookeeper-3.4.6.
- 在D:machine 新建data及log目录。
- ZooKeeper的安装模式分为三种,分别为:单机模式(stand-alone)、集群模式和集群伪分布模式。ZooKeeper 单机模式的安装相对比较简单,如果第一次接触ZooKeeper的话,建议安装ZooKeeper单机模式或者集群伪分布模式。(测试可以用单机模式)
- 安装单击模式。 至D:machinezookeeper-3.4.6conf 将zoo_sample.cfg 修名为zoo.cfg.
- 编辑zoo.cfg.修改如下配置
7、cmd命令下进入D:machinezookeeper-3.4.6in目录下运行zkserver.cmd.如下图所示:
8、启动完成后cmd命令下,netstat-ano查看端口监听服务。
9、cmd下进入D:machinezookeeper-3.4.6in目录下运行zkcli.cmd.或者直接双击zkcli.cmd