In the previous article we introduced the "Build Dubbo distributed Platform-dubbo Console Installation", considering that our development environment is on the window, in order to deploy the convenience, today to briefly introduce the window installation zookeeper registry.
- Brief introduction
Zookeeper is a full-fledged sub-project of Hadoop, a reliable coordination system for large distributed systems, with features such as configuration maintenance, name services, distributed synchronization, group services, and more. The goal of zookeeper is to encapsulate complex and error-prone services that provide users with easy-to-use interfaces and performance-efficient, robust systems.
- Installation and Configuration
The official website of Apache provides a lot of mirrors, then find the corresponding version, the latest is 3.3.6
:
Http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz
Install under Windows
Extract the downloaded zookeeper files to the specified directory
D:\ant\zookeeper-3.3.6>
Modify the Conf to add a zoo.cfg
The contents are as follows:
#The number of milliseconds of each tick heartbeat interval milliseconds each time
ticktime=2000
#The number of ticks that 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. Mirrored Data location
Datadir=d:\data\zookeeper
#日志位置
Datalogdir=d:\logs\zookeeper
The port at which the clients WillConnect client connection
clientport=2181
Note: If you start an error message that the CFG file has errors, you can use the contents of the zoo_sample.cfg can also be replaced
Go to the Bin directory and start Zkserver.cmd, this script will start a Java process
You can also double-click Zkserver.cmd to start:
Willing to understand the framework of technology or source of friends directly seeking exchange sharing technology 2042849237
Welcome to join me in learning "build Dubbo Distributed platform", I hope you continue to pay attention to the following articles!
(14) Build Dubbo distributed platform-window install Zookeeper Registration Center