This article first describes the Linux under the stand-alone version of the installation process, cluster configuration follow up again. About the basic introduction of zookeeper and the original in this article do not do more introduction, you can find yourself. The process of this article is relatively simple, only to make a memo.
First step install jdk; zookeeper need to rely on Java environment to run, The installation of the JDK in the previous article is described in detail and is for informational purposes only. Download the latest stable version; This article downloads the Zookeeper-3.4.10 version, which can be downloaded using wget or download it yourself. :http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.10/ & nbsp Install and configure; 1, download the package to the relevant directory, and extract the zookeeper to the specified directory; #cd/opt; # tar-zxvf zookeeper-3.4.10.tar.gz; 2 Modify Profile; into/opt/zookeeper-3.4.10/conf directory, Name Zoo_sample.cfg (boilerplate configuration file) zoo.cfg.  MV zoo_sample.cfg zoo.cfg Two more important configurations: (1), D atadir=/opt/zookeeper-3.4.10/data &NBSP ; # data storage location, can be modified as required; (2), clientport=2181 , &NB Sp # service listening port, can modify; common operation; &nbs as needed P 1, zookeeper server start; # cd /opt/zookeeper-3.4.10/bin/ #./zkserver.sh STA rt   2, zookeeper end of service stop; &NBsp # cd/opt/zookeeper-3.4.10/bin/ &N Bsp #./zkserver.sh stop   3, zookeeper services end multiplicity Kai; &nb Sp # cd/opt/zookeeper-3.4.10/bin/ &NB Sp #./zkserver.sh restart &NB Sp 4, view zookeeper process; &NB SP, #ps-ef|grep zookeeper; 5, view zookeeper Server status; & nbsp # cd/opt/zookeeper-3.4.10/bin/ &NB Sp #./zkserver.sh status     6, zookeeper client login; &N Bsp # cd/opt/zookeeper-3.4.10/bin/ &NB Sp;#./zkcli.sh-server 127.0.0.1:2181
Install zookeeper on Linux