Installing Zookeeper on Linux

Source: Internet
Author: User
Tags zookeeper zookeeper client

This article first describes the Linux under the stand-alone version of the installation process, cluster configuration follow up again. About the basic introduction of zookeeper and the original in this article do not do more introduction, you can find yourself. The process of this article is relatively simple, only to make a memo.

      First step   install jdk;            zookeeper need to rely on Java environment to run, The installation of the JDK in the previous article is described in detail and is for informational purposes only.       Download the latest stable version;             This article downloads the Zookeeper-3.4.10 version, which can be downloaded using wget or download it yourself.              :http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.10/  & nbsp     Install and configure;           1, download the package to the relevant directory, and extract the zookeeper to the specified directory;                    #cd/opt;                    # tar-zxvf zookeeper-3.4.10.tar.gz;                    2 Modify Profile;                        into/opt/zookeeper-3.4.10/conf directory, Name Zoo_sample.cfg (boilerplate configuration file) zoo.cfg.                      MV zoo_sample.cfg zoo.cfg                  Two more important configurations:                (1), D atadir=/opt/zookeeper-3.4.10/data                       &NBSP ; # data storage location, can be modified as required;                (2), clientport=2181                                  ,         &NB Sp            # service listening port, can modify;        common operation;        &nbs as needed P     1, zookeeper server start;                      # cd /opt/zookeeper-3.4.10/bin/                      #./zkserver.sh STA rt                  2, zookeeper end of service stop;              &NBsp       # cd/opt/zookeeper-3.4.10/bin/                  &N Bsp   #./zkserver.sh stop                  3, zookeeper services end multiplicity Kai;  &nb Sp                    # cd/opt/zookeeper-3.4.10/bin/    &NB Sp                  #./zkserver.sh restart          &NB Sp       4, view zookeeper process;                      &NB SP, #ps-ef|grep zookeeper;                  5, view zookeeper Server status;  & nbsp                    # cd/opt/zookeeper-3.4.10/bin/    &NB Sp                  #./zkserver.sh status                  6, zookeeper client login;                    &N Bsp  # cd/opt/zookeeper-3.4.10/bin/                      &NB Sp;#./zkcli.sh-server 127.0.0.1:2181

Install zookeeper on Linux

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.