1. Download ZooKeeper

Download from zookeeper. Address: https://zookeeper.apache.org/releases.htmlCopy the code

2. Decompress and install

The directory can be arranged by itself, the following is an example of unzipping it into D:\services\ Zookeeper copy.. /conf/zoo_sample. CFG, rename to.. /conf/zoo. CFG modify zoo. CFG file to add location: # example sakes. DataDir =D:\data\zookeeper\data dataLogDir=D:\data\zookeeper\logsCopy the code

3. Start the service

CMD: D: services\zookeeper\bin\ zkserver.cmdCopy the code

4. Client connection

Cli: D: services\zookeeper\bin\ zkcli. cmd-server 127.0.0.1:2181Copy the code

At this point, the simple installation in Windows is complete.