zookeeper windows simple installation

The purpose of installing Zookeeper is to use Storm, and there will be detailed installation instructions for Storm later.

Step1: Download the latest version and stable zookeeper, you can download it in http://apache.fayea.com/zookeeper/ (currently 3.4.6 is better)

step2: Unzip the downloaded file, zookeeper does not need to be installed, just unzip it Can. Then put the decompressed file in the location you want, such as: D:\zookeeper-3.4.6 (where I put it, you are free)

Step3: Enter the D:\zookeeper-3.4.6\conf directory, and put the zoo_sample inside .cfg file, make a backup, and then change its name to zoo.cfg, because after zookeeper starts, it only knows all the settings and configurations in

zoo.cfg Step4: Open zoo.cfg (how to open, everyone chooses your favorite editing software, I Emacs is used), I added 2 configurations: dataDir=D:\\zookeeper-3.4.6\\data
              dataLogDir=D:/zookeeper-3.4.6/logs The
              reason why "\\" is used above and below is used "/", just to tell everyone that only the usage of the slashes in these two is correct, the others are wrong.

Step5: Enter D:\zookeeper-3.4.6, create two subdirectories, the directory names are data and logs

Step6: Use cmd, enter D:\zookeeper-3.4.6\bin, run zkServer.cmd, and start the service, as follows Figure

port: 2181 is the dedicated listening port for zookeeper.

http://blog.sina.com.cn/s/blog_4caaa74a0102vjjb.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326943227&siteId=291194637