zookeeper 3.4.6安装
zookeeper 3.4.6安装
Vincent-Duan 发表于6个月前
zookeeper 3.4.6安装
  • 发表于 6个月前
  • 阅读 8
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 新注册用户 域名抢购1元起>>>   

复制zoo_sample.cfg到当前文件夹命名为zoo.cfg

内容修改如下:

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
#dataDir=/tmp/zookeeper
dataDir=/usr/zookeeper-3.4.6/zookeeper-data
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the 
# administrator guide before turning on autopurge.
#
# http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
#
# The number of snapshots to retain in dataDir
#autopurge.snapRetainCount=3
# Purge task interval in hours
# Set to "0" to disable auto purge feature
#autopurge.purgeInterval=1
server.1=192.168.152.29:2888:3888
server.2=192.168.152.45:2888:3888

在zookeeper-3.4.6目录中,新建目录zookeeper-data,

新建myid文件 ,内容为对应的server.?,?就是内容

将zookeeper-3.4.6拷贝到其他slave中

#启动
zkServer.sh start &
#停止
zkServer.sh stop
#查看状态
zkServer.sh status

共有 人打赏支持
Vincent-Duan
粉丝 10
博文 266
码字总数 93006
×
Vincent-Duan
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: