Zookeeper stay Windows Installation process and test under
* install jdk
* install Zookeeper. On the official website http://zookeeper.apache.org/ <http://zookeeper.apache.org/>
download zookeeper. I downloaded zookeeper-3.4.6 edition .
* decompression zookeeper-3.4.6 to D:\machine\zookeeper-3.4.6.
* stay D:\machine newly build data and log catalog .
ZooKeeper There are three installation modes of , They are ： standalone mode （stand-alone）, Cluster mode and cluster pseudo distribution mode .ZooKeeper
The installation of stand-alone mode is relatively simple , If first contact ZooKeeper The words , Recommended installation ZooKeeper Single machine mode or cluster pseudo distribution mode .
Install click mode . to D:\machine\zookeeper-3.4.6\conf copy zoo_sample.cfg And paste it into the current directory , name zoo.cfg.
edit zoo.cfg. Modify the following configuration
cmd Enter under command D:\machine\zookeeper-3.4.6\bin Run under directory zkserver.cmd. As shown in the figure below ：
* After startup cmd Under command ,netstat-ano View port listening service .
* cmd Down entry D:\machine\zookeeper-3.4.6\bin Run under directory zkcli.cmd. As shown in the figure below ：
* Install cluster pseudo distribution mode .
modify zoo.cfg file . As shown in the figure below ：
Save as zoo-1.cmd.
Save as zoo-2.cmd.
Save as zoo-3.cmd.
modify zkserver.cmd file . As shown in the figure below ：
Save as zkserver-1.cmd
Save as zkserver-2.cmd
Save as zkserver-3.cmd.
cmd Run separately zkserver-1.cmd,zkserver-2.cmd,zkserver-3.cmd.
* cmd lower netstar-ano View port monitoring .
cmd Run down zkcli.cmd -server:localhost:2181;zkcli.cmd
zookeeper And java Connections for
Stand alone connection ：
Cluster connection ：