centos7部署zookeeper3.8

docker run --name zookeeper
–restart=always
-p 2181:2181
-p 2888:2888
-p 3888:3888
-v /etc/localtime:/etc/localtime
-v /opt/zookeeper/data:/apache-zookeeper-3.8.0-bin/data
-v /opt/zookeeper/conf/zoo.cfg:/apache-zookeeper-3.8.0-bin/conf/zoo.cfg
-v /opt/zookeeper/logs:/apache-zookeeper-3.8.0-bin/logs
-d zookeeper:3.8.0

#zoo.cfg
clientPort=2181
dataDir=/apache-zookeeper-3.8.0-bin/data
dataLogDir=/apache-zookeeper-3.8.0-bin/logs
tickTime=2000
initLimit=10
syncLimit=5
autopurge.snapRetainCount=3
autopurge.purgeInterval=0
maxClientCnxns=60
server.0=192.168.163.141:2888:3888
server.1=192.168.163.143:2888:3888
server.2=192.168.163.144:2888:3888
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值