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