zookeeper installation and deployment

First download from zookeeper official website

http://zookeeper.apache.org/releases.html

 

Choose the appropriate version

 

Just unzip the file directly in the system

I downloaded the zookeeper-3.4.8.tar.gz version

decompress

gunzip –c zookeeper-3.4.8.tar.gz

tar -xvf zookeeper-3.4.8.tar

Then go to the conf folder in the zookeeper file

According to the zoo_sample.cfg file, copy a zoo.cfg file and configure it

tickTime=2000

initLimit = 10

syncLimit=5

dataDir=/appl/zookeeperdir/data

dataLogDir=/appl/zookeeperdir/log

clientPort=2181

 

tickTime timeout

dataDir, dataLogDir data and log directories

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326196887&siteId=291194637