码迷,mamicode.com
首页 > 其他好文 > 详细

centos7 docker zookeeper

时间:2016-07-07 12:45:39      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

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

 

centos7 docker zookeeper

标签:

原文地址:http://www.cnblogs.com/fr5s/p/5649424.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!