Installing zookeeper under Linux system

Install the zookeeper
1. Unpack

Tar ZXVF – apache – they are – 3.6.1 track – bin. Tar. Gz

Create folders

mkdir /usr/local/

3. Move folders

Mv apache – they are – 3.6.1 track – bin/usr/local /

4. Rename configuration files

CD/usr/local/apache – they are – 3.6.1 track – bin/conf
Cp zoo_sample. CFG zoo. CFG

5. Modify the configuration file

Vi Zoo. CFG, modify the corresponding content as follows

dataDir=/usr/local/apache-zookeeper-3.6.1-bin/data

# new

admin.serverPort=18888

6, start,

CD/usr/local/apache – they are – 3.6.1 track – bin/bin
./zkServer.sh start

7, test,

netstat -anp|grep 2181

Read More: