The installation process of Zookeeper3.4.14 (stand-alone version) under Windows

Step 1: Download and unzip

The latest download from the official website: https://zookeeper.apache.org/releases.html
Historical version download: Download all historical versions of zookeeper
Domestic mirror download: https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/

1. Just download the tar.gz package. Please make sure that the computer has installed the JDK environment before installation.
2. Considering network reasons, it is recommended to download from the third mirror, which is the fastest.
3. The version I chose to install is 3.4.14. Launched in 19, not too old

Step 2: Modify the configuration file

Right-click to decompress the compressed package, create a new data folder under the decompressed zookeeper-3.4.14 folder,
Create data directory
enter the conf folder, rename the configuration file zoo_sample.cfg to zoo.cfg,
and then use notepad++ to open the file and modify The path of dataDir (note: double slashes)
modify path
configuration file description:

tickTime: The time interval between zookeeper servers and between clients and servers to maintain heartbeats, that is, a heartbeat is sent every tickTime, in milliseconds, and the default interval is two seconds. initLimit: The follower server (F) in the cluster
and The maximum number of heartbeats (the number of tickTimes) that can be tolerated during the initial connection between the leader server (L)
syncLimit: the maximum number of heartbeats that can be tolerated by requests and promises between the flower server (F) and the leader (L) server in the cluster
dataDir: Store myid information and some versions, logs, and server unique ID information and other data
clientPort: the port where the client connects to the zookeeper server, zookeeper will listen to this port, the default is 2181

Step Three: Start

The bin folder is full of commands. Just double-click zkServer.cmd to start the service.
start up
Open the client, double-click zkCli.cmd to start,
client
and press Enter to enter the command line to operate
Command Line
command line operation
. At this point, the stand-alone version of zookeeper under windows has been installed for local testing It is still possible to learn to use.

Guess you like

Origin blog.csdn.net/qq_36737803/article/details/106999964