# cd /opt/ # wget https://archive.apache.org/dist/zookeeper/zookeeper-3.5.5/apache-zookeeper-3.5.5-bin.tar.gz # tar zxf apache-zookeeper-3.5.5-bin.tar.gz # mv apache-zookeeper-3.5.5-bin zookeeper # mkdir /opt/zookeeper/{dataDir,dataLogDir} # cd /opt/zookeeper/conf/ # cp zoo_sample.cfg zoo.cfg # vim zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/opt/zookeeper/dataDir dataLogDir=/opt/zookeeper/dataLogDir clientPort=2181 # vim /etc/profile.d/zookeeper.sh ZOOKEEPER_HOME=/opt/zookeeper PATH=$PATH:$ZOOKEEPER_HOME/bin export PATH # source /etc/profile # zkServer.sh start ZooKeeper JMX enabled by default Using config: /opt/zookeeper/bin/../conf/zoo.cfg Starting zookeeper ... STARTED # netstat -antulp|grep -i listen