##下載並修改zookeeper配置 - sudo wget -p /usr/local/install http://apache.opencas.org/zookeeper/zookeeper-3.3.6/zookeeper-3.3.6.tar.gz -d - sudo tar xzvf /usr/local/install/zookeeper-3.3.6.tar.gz - sudo mv /usr/local/install/zookeeper-3.3.6/conf/zoo_simple.cfg zoo.cfg - sudo vi /usr/local/install/zookeeper-3.3.6/conf/zoo_simple.cfg zoo.cfgapache
tickTime=2000 initLimit=10 syncLimit=5 dataDir=/usr/local/install/zookeeper-3.3.6/data clientPort=2181
##啓動zookeeper - ./usr/local/install/zookeeper-3.3.6/./zkServer.sh startcode