Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation method of zookeeper

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "zookeeper installation method". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn the "zookeeper installation method" together.

Before installing zookeeper, let's take a look at the zookeeper profile https://baike.baidu.com/item/zookeeper/4836397? fr=aladdin

In Dubbo, zookeeper is officially recommended as the registry center. Let's install zookeeper.

Zookeeper supports running in windows, but also supports running in linux. When developing, we can use windows, but enterprise projects run, basically linux. For convenience, we talk about basic courses and directly decompress windows to run. After the actual combat project courses, are running under Linux; running the same principle, one is to start bat, Linux can start sh; everyone linux foundation is not good, then make up the knowledge;

zookeeper homepage http://zookeeper.apache.org/

Find the download page mirror http download download a stable version zookeeper-3.4.11.tar.gz other beta versions do not download;

We demonstrate the operation of zookeeper under windows;

Unzip zookeeper-3.4.11.tar.gz

We run zkServer.cmd in the bin directory (zkServer.sh in Linux)

Run time is a flash, indicating that the startup error;

If we want to see specific error messages, use Notepad to open the zkServer.cmd file;

At the end of the file, add a pause.

We run zkServer.cmd again

You can see the error message:

The zoo.cfg file was not found under conf.

Let's look at the conf directory again;

There is a zoo_sample.cfg file, this is a demo file, zookeeper official meaning, this is a demo configuration file, we can customize the configuration, we temporarily do not talk about zookeeper, so directly change zoo_sample.cfg to zoo.cfg;

After the change, we start zkServer.cfg again, as shown in the figure:

It means that the startup is successful. Here 2181 is the default port of zookeeper. In zoo.cfg just now, we can configure it;

Specific tests, we later talked about publishing services, you can really see the effect;

Thank you for reading, the above is the "zookeeper installation method" content, after the study of this article, I believe that everyone has a deeper understanding of the zookeeper installation method, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report