Last time we introduced “build Dubbo distributed platform – Dubbo management console installation”, considering that our development environment is on Windows, in order to facilitate deployment and operation, today we will briefly introduce the Window installation of ZooKeeper registry.

1. Introduction

ZooKeeper is an official subproject of Hadoop. It is a reliable coordination system for large distributed systems. ZooKeeper provides configuration maintenance, name service, distributed synchronization, and group service. ZooKeeper aims to encapsulate key services that are complex and error-prone, and provide users with easy-to-use interfaces, efficient performance, and stable functions.

2. Installation and configuration

Apache’s official website provides a number of images to download, and then find the corresponding version, the latest is 3.3.6

Download address:

http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz

Under Windows installation

Decompress the downloaded ZooKeeper file to a specified directory

D: \ ant \ zookeeper – 3.3.6 >

Add a zoo. CFG file to conf

As follows:

# 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 anacknowledgement

syncLimit=5

# the directory where the snapshot isstored

dataDir=D:\\data\\zookeeper

# log location

dataLogDir=D:\\logs\\zookeeper

# the port at which the clients willconnect Specifies the port to which the client connects

clientPort=2181

Note: If an error message is displayed indicating that the CFG file is incorrect during startup, you can use the zoo_sample. CFG file to replace it

Go to the bin directory and start zkServer.cmd, which will start a Java process

You can also double-click zkserver. CMD to start:




Welcome to learn “Building a Dubbo Distributed Platform” with me, and I hope you will continue to pay attention to the following articles!

Willing to understand the framework technology or source code of friends directly beg exchange to share technology: 2042849237 distributed some solutions, a friend willing to understand can find our team to discuss more detailed source code reference source: minglisoft.cn/technology