1. 下载
http://apache.fayea.com/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
2. 配置
zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/tmp/zookeeper0/data
dataLogDir=/tmp/zookeeper0/logs
clientPort=2181
server.0=127.0.0.1:8880:7770
server.1=127.0.0.1:8881:7771
server.2=127.0.0.1:8882:7772
3. 启动
./zookeeper0/bin/zkServer.sh start
./zookeeper1/bin/zkServer.sh start
./zookeeper2/bin/zkServer.sh start
4. 测试