Spring Integration Dubbox (ii) Zookeeper

Source: Internet
Author: User
Tags zookeeper

The essay is mainly about the introduction, installation and launch of Dubbox's registry zookeeper.

In distributed applications, the primary role of the registry is to register and locate service addresses , which is equivalent to directory services, where service providers and consumers interact with the registry only at startup, and the registry does not forward requests, with less pressure.

I. Introduction of Zookeeper

Zookeeper is a sub-project of Apacahe Hadoop, a tree-based directory service that supports change push and is suitable as a registration center for Dubbox Services, with high industrial strength and can be used in production environments.

Two. Installation of Zookeeper on Linux systems

The zookeeper environment needs to install the JDK, so we need to install the JDK first, but we don't cover this part of the content, there are many tutorials on the web.

1. Upload the Zookeeper installation package to the Linux system first (I provide a 3.4.6 version below)

2. Unzip the package

TAR-ZXVF zookeeper-3.4.6.tar.gz

3. Enter the zookeeper-3.4.6 directory to create the data directory

mkdir data

4. Enter the Conf directory and rename the zoo_sample.cfg to Zoo.cfg

     

CD conf

MV Zoo_sample.cfg Zoo.cfg

5. Open Zoo.cfg Modify Data property

Datadir=/root/zookeeper-3.4.6/data

Three. Zookeeper Start-up

Go to the Bin directory and enter the service start command.

./zkserver.sh Start

If the output below indicates success

      

You can use the./zkservice.sh status to view the startup status

Use zkservice.sh stop to stop

Spring Integration Dubbox (ii) Zookeeper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.