标签:
docker run --name=zookeepertmp -i -t centos7/jdk7 /bin/bash cd /home wget http://apache.fayea.com/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz tar -axf zookeeper-3.4.8.tar.gz cd zookeeper-3.4.8 mkdir data cd conf cp zoo_sample.cfg zoo.cfg vi zoo.cfg dataDir=/home/zookeeper-3.4.8/data vi /etc/profile ZOOKEEPER_HOME=/home/zookeeper-3.4.8 PATH=$ZOOKEEPER_HOME/bin:$PATH source /etc/profile docker commit zookeepertmp centos7/zookeeper348 docker stop zookeepertmp docker rm zookeepertmp docker run --name=zookeeper2188 -tid -p 2188:2181 centos7/zookeeper348 /home/zookeeper-3.4.8/bin/zkServer.sh start-foreground
标签:
原文地址:http://www.cnblogs.com/fr5s/p/5649424.html