Zookeeper学习记录 - mac下安装部署

发布时间:2022-06-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了Zookeeper学习记录 - mac下安装部署脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

Zookeeper学习记录 - mac下安装部署

一、下载

官方地址

 

二、解压

 

三、data&log

新建数据文件夹 data

/Users/www/zookeeper/data

新建日志文件夹 log

/Users/www/zookeeper/log

 

四、配置

zookeeper conf 目录下, 新建 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=/Users/www/zookeeper/data

# log目录, 同样可以是任意目录. 如果没有设置该参数, 将使用和#dataDir相同的设置.
dataLogDir=/Users/www/zookeeper/log

# the port at which the clients will connect
clientPort=2181

 

五、启动

zookeeper bin 目录下

./zkServer.sh start

 

六、停止

zookeeper bin 目录下

./zkServer.sh stop

 

 

参考资料

Mac 安装与配置 Zookeeper

脚本宝典总结

以上是脚本宝典为你收集整理的Zookeeper学习记录 - mac下安装部署全部内容,希望文章能够帮你解决Zookeeper学习记录 - mac下安装部署所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: