Install and configure zookeeper under windows

After downloading zookeeper, unzip it and create a zoo.cfg file
in the conf directory, and paste the following content into it

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
dataDir=D:\\work\\zookeeper-3.3.6\\data
dataLogDir=D:\\work \\zookeeper-3.3.6\\log
# the port at which the clients will connect
clientPort=2181

Enter the bin directory to start zkServer.cmd
successfully

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326211944&siteId=291194637