Zookeeper installation in Linux

Source: Internet
Author: User

Installation Environment:

Linux:centos6.4

jdk:1.7 or later

Zookeeper is a Java development that can run in Windows,Linux environments. The JDK needs to be installed first .

Installation steps:

First step: Install the JDK

Step Two: upload the Zookeeper package to the Linux system.

Step Three: Extract the compressed package

TAR-ZXVF zookeeper-3.4.6.tar.gz

Fourth Step: Enter the zookeeper-3.4.6 directory and create the data folder.

The fifth step: renaming zoo_sample.cfg to zoo.cfg

[Email protected] conf]# MV Zoo_sample.cfg zoo.cfg

Sixth step: Modify The Data property:datadir=/root/zookeeper-3.4.6/data

Seventh Step: Start Zookeeper

[[email protected] bin]#./zkserver.sh start

Close: [[email protected] bin]#./zkserver.sh stop

View Status: [Email protected] bin]#./zkserver.sh status

Note: You need to turn off the firewall.

Zookeeper installation in 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.