- 1、本文档共54页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
本地dubbo项目搭建测试例子
一:zookeeper的下载及配置:
一:zookeeper下载:
下载地址:/apache/zookeeper/zookeeper-3.4.6/
点击zookeeper-3.4.6.tar.gz 下载即可!
二:zookeeper配置:
Zookeeper下载后的目录,如图:
1)配置路径:
/conf目录下面的 zoo_sample.cfg修改为zoo.cfg
tickTime:Zookeeper 服务器之间或客户端与服务器之间维持心跳的时间间隔,也就是每个 tickTime 时间就会发送一个心跳。tickTime以毫秒为单位。initLimit:集群中的follower服务器(F)与leader服务器(L)之间初始连接时能容忍的最多心跳数(tickTime的数量)。syncLimit:集群中的follower服务器与leader服务器之间请求和应答之间能容忍的最多心跳数(tickTime的数量)。
dataDir:Zookeeper保存数据的目录,默认情况下,Zookeeper将写数据的日志文件也保存在这个目录里。
dataLogDir:Zookeeper保存日志文件的目录。clientPort:客户端连接 Zookeeper 服务器的端口,Zookeeper 会监听这个端口,接受客户端的访问请求。
==========================代码如下=====================================
# 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=/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.
#
# /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
即可。
2)路径修改
# 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=C:/Users/issuser/Desktop/service1/data
dataLogDir=C:/Users/issuser/Desktop/service1/log
# the port at wh
您可能关注的文档
- 新课标人教版初中英语八年级下册Unit3第一课时说课稿.doc
- 新苏教版5五年级下册《小学生数学报》数学学习能力检测卷.doc
- 新课标 青岛版小学数学五年级上册《三角形的面积 》教学实录与评析.doc
- 旅游包车可行性报告.doc
- 旅游饭店人力资源管理研究综述.doc
- 新视野大学英语听说课程第二册_unit_1.ppt
- 无尘室管理办法.doc
- 无锡市职业技能鉴定.doc
- 星巴克cis案例分析.docx
- 春游主持稿3.doc
- 德国授权书格式示例参考.docx
- 家庭装修单项工程合同范本.docx
- 临汾市第三中学2022-2023学年七年级上学期期末道德与法治试题.docx
- 国有企业改革成功案例.ppt
- 电商服务租赁合同交通规划行业.docx
- 2024年东莞市凤岗镇住房和城乡建设局招考聘用合同制聘员【综合基础知识500题】高频考点模拟试题及参考答案解析.docx
- 2024年东电三公司社会招聘【综合基础知识500题】高频考点模拟试题及参考答案解析.docx
- 2024年下半年黑龙江中医药大学佳木斯学院公开招聘工作人员历年【综合基础知识500题】高频考点模拟试题及参考答案解析.docx
- 2024年上海铁路局招聘3029人历年【综合基础知识500题】高频考点模拟试题及参考答案解析.docx
- 买卖合同多重交易的法律风险.docx
文档评论(0)