Install Zookeeper on "Zookeeper" Linux (single node)

Source: Internet
Author: User
Tags zookeeper

First step: Download the installation package http://download.csdn.net/download/chao8672/9963465

Step two: Copy to Linux server and unzip

-ZXVF zookeeper-3.3. 6. tar.gz

Step three: Create DataDir and Datalogdir

# mkdir DataDir

#mkdir LogDir

Fourth step: Copy Zoo_sample.cfg to zoo.cfg and modify the DataDir and logdir paths where the paths are created in the third step

# CP Zoo_sample.cfg Zoo.cfg

The following two variables are modified in the ZOO.CFG configuration file:

Datadir=/app/zookeeper/zookeeper-3.3.6/datadir
Datalogdir=/app/zookeeper/zookeeper-3.3.6/logdir

Fifth Step: Configure Linux environment variables

# export zookeeper_install=/app/zookeeper/zookeeper-3.3. 6/# export PATH= $PATH: $ZOOKEEPER _install/bin

Sixth step: Start and view the running status

-ef| grep zookeeper mode 3:# zkserver.sh status

Very simple!

Install Zookeeper on "Zookeeper" Linux (single node)

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.