Linux Zookeeper stand-alone installation

Source: Internet
Author: User
Tags zookeeper

Zookeeper (Port 2181)

http://mirror.bit.edu.cn/apache/zookeeper/

Extract to/usr/local directory

>TAR-ZXVF zookeeper-3.4.12.tar.gz-c/usr/local/

>cd/usr/local/zookeeper-3.4.12/

Modifying a configuration file

>CD conf

>CP zoo_sample.cfg zoo.cfg

>vim zoo.cfg Change Configuration

# of milliseconds of each tickticktime= -# The number of ticks that the initial # synchronization phase can takeinitlimit=Ten# The number of ticks that can pass between # Sending a request and getting an acknowledgementsynclimit=5# The DirectorywhereThe snapshot isstored.# DoNot use/tmp forStorage,/tmp here isJust # example sakes. #dataDir=/tmp/Zookeeperdatadir =/usr/local/zookeeper-3.4.12/ datadatalogdir =/usr/local/zookeeper-3.4.12/ Logs# The port at which the clients would connectclientport=2181# The maximum number of client connections.# increase This ifYou need to handle more Clients#maxclientcnxns= -# # is sure to read the maintenance sections of the # Administrator guide before turning on autopurge.## http://zookeeper.apache.org/doc/current/zookeeperadmin.html#sc_maintenance# # of snapshots to retaininchDatadir#autopurge.snapretaincount=3# Purge Task intervalinchhours# Set to"0"To disable Auto purge feature#autopurge.purgeinterval=1

Change environment variables Add the following configuration

>vim/etc/profile

Export zookeeper_home=/usr/local/zookeeper-3.4.  A export PATH=${zookeeper_home}/bin:${path}

>source/etc/profile

Linux Zookeeper stand-alone installation

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.