Original: http://www.cnblogs.com/RainAndWind/p/4668427.html
Zookeeper is a distributed, open-source framework for basic services for coordinating distributed applications. These days using Dubbo, because the development environment is in the Windows environment, you need to be able to run zookeeper first and then implement the service's address assignment on this basis.
In the following, first build a single-machine mode of the zookeeper environment.
First, download the code package from the open source Chinese society. Here is 3.4.6 (zookeeper-3.3.6.tar.gz)
Then unzip the package into the file directory, you can see
Go to the Conf directory and rename the. cfg file to zoo.cfg.
# The directory where the snapshot is stored.
# do not use/tmp for storage,/tmp here are just
# example Sakes.
Datadir=d:\\zookeeper-3.4.6\\data
Datalogdir=d:\\zookeeper-3.4.6\\log
#dataDir =/tmp/zookeeper
You can see that two lines are added from the code above. In this machine. The zookeeper is placed in the D drive and then added the DataDir and datalogdir two variables. At the same time in the Zookeeper file directory to create a new data and log two folders, if not created, the script will be run after the error.
When you are done, go to the bin directory and run the Zkserver.cmd script so that you can run zookeeper on a single machine.
Monitoring view
Zooinspector
Run the script
@echo off
CD D:\software\zookeeper-3.4.6\ZooInspector\build
D:
Java-dfile.encoding=utf-8-jar Zookeeper-dev-zooinspector.jar
installation, operation and monitoring of zookeeper under WINDOW7 environment view