zookeeper build and test

1. Download the tar package zookeeper

Baidu search zookeeper, enter the official website, download the tar package

2. Install the zookeeper in the windows environment

Decompression zookeeper archive, enter the bin directory, cmd into the command window, start zkServer.cmd

At this point you will be given as follows:

This is not because the configuration file to configure, and then we carry out the configuration file:

Zoo_sample.cfg copy and paste files and renamed zoo.cfg.

Open zoo.cfg, into the inside of the data directory path you set, I created a data directory in the bin directory at the same level, so modify as shown below:

Start again zookeeper server, execute the command window zkServer.cmd

Start successfully.

3. Open the client zookeeper

Start zkCli.cmd in the command window

Port number and the same configuration file, 2181. Started successfully.

4. Test

We can do some simple tests to establish a node to view the value of the node.

Published 79 original articles · won praise 48 · views 90000 +

Guess you like

Origin blog.csdn.net/bianyamei/article/details/81128272