Dubbo environment to build -ZooKeeper registry

Scenes

Dubbo Introduction and basic concepts:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103555224

Note:

Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.

achieve

A blog mentioned above Dubbo's official website, now referring to its official registration center Reference document:

http://dubbo.apache.org/zh-cn/docs/user/references/registry/introduction.html

 

 

It shows recommended Zooker registry

 

 

Zookeeper enter the official website:

http://zookeeper.apache.org/

click to download

 

 

Download archive

 

 

Here choose a more stable version 3.4.11

 

 

After downloading unzip to the bin directory

 

 

Open a command line in here, start zkServer.cmd, will direct error

 

 

According to its error prompt is zoo.cfg file under conf missing.

Came under cfg directory

The zoo_sample.cfg copy and renamed zoo.cfg

 

 

Then open zoo.cfg EditPlus like configuration file, modify its data storage locations for data directory of the parent directory.

 

 

Then the new data directory under the parent directory

 

 

Then came the next bin, open a command line enter it here:

zkServer.cmd

 

 

As the launch was successful.

And then re-open the command line in this directory, enter:

zkCli.cmd

 

 

Then enter the following command to view the node

 

 

New nodes can be

 

 

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/12046671.html