配置Java环境变量
export JAVA_HOME=/usr/local/install/java
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
安装zookeeper
修改配置 cp zoo_sample.cfg zoo.cfg
数据文件 dataDir=/usr/local/install/zookeeper/data
tickTime = 2000
dataDir = /path/to/zookeeper/data
clientPort = 2181
initLimit = 5
syncLimit = 2