linux安装zookeeper
# 解压安装包
[root@Test1 local]# tar -zxvf zookeeper-3.4.12.tar.gz
# 切换到zookeeper目录
[root@Test1 local]# cd zookeeper-3.4.12
[root@Test1 zookeeper-3.4.12]# ls
bin docs NOTICE.txt zookeeper-3.4.12.jar
build.xml ivysettings.xml README.md zookeeper-3.4.12.jar.asc
conf ivy.xml README_packaging.txt zookeeper-3.4.12.jar.md5
contrib lib recipes zookeeper-3.4.12.jar.sha1
dist-maven LICENSE.txt src
# 切换到conf目录
[root@Test1 zookeeper-3.4.12]# cd conf
[root@Test1 conf]# ls
configuration.xsl log4j.properties zoo_sample.cfg
# 拷贝一份配置文件 名字必须叫zoo.cfg
[root@Test1 conf]# cp zoo_sample.cfg zoo.cfg
[root@Test1 conf]# cat zoo.cfg
# 启动服务
[root@Test1 bin]# ./usr/local/cd zookeeper-3.4.12/bin/zkServer.sh start