1. Login to CentOS online download Zookeeper source package
Here is the download command to download the zookeeper package to the current directory on your local environment
wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.5.0-alpha/zookeeper-3.5.0-alpha.tar.gz
Note that the link above me is directly from the remote official link, if invalid, please replace the corresponding available source package address.
2, unzip to the current directory, and modify the parameters
tar -zxvf zookeeper-3.5.0-alpha.tar.gz [root@iZ23j7s7ouqZ ~]# cd zookeeper-3.5.0-alpha[root@iZ23j7s7ouqZ zookeeper-3.5.0-alpha]# cd conf/[root@iZ23j7s7ouqZ conf]# lsconfiguration.xsl log4j.properties zoo_sample.cfg[root@iZ23j7s7ouqZ conf]# mv zoo_sample.cfg zoo.cfg[root@iZ23j7s7ouqZ conf]#
To the Conf directory, modify the zoo_sample.cfg to Zoo.cfg
3. Start Zookeeper Server
start
Go to the Bin directory of zookeeper, execute the above command, and you can see
JMX enabled by default
Using config:/root/zookeeper-3.5.0-alpha/bin/. /conf/zoo.cfg
Starting zookeeper ... STARTED
Indicates that the execution was successful.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Installing zookeeper under CentOS