spring和dubbo整合demo下载地址
dubbo源码地址
https://github.com/alibaba/dubbo
dubbo管理工具dubbo-admin安装使用
进入下载dubbo-admin管理界面源码,进行maven打包 把打包war包部署到tomcat
- 打包war包,进入dubbo-admin这个文件目录 运行命令:
mvn package -Dmaven.skip.test=true
- -
zookeeper 安装 windows环境
在apache的官方网站提供了好多镜像下载地址,然后找到对应的版本
下载地址:
https://mirrors.cnnic.cn/apache/zookeeper/
- 把下载的zookeeper的文件解压到指定目录
- 修改conf下增加一个zoo.cfg,可以用zoo_sample.cfg内内容替代
安装完成进入bin目录启动zkServer.cmd命令
# The number of milliseconds of each tick 心跳间隔 毫秒每次
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
#多少个心跳时间内,允许其他server连接并初始化数据,如果ZooKeeper管理的数据较大,则应相应增大这个值
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
#多少个tickTime内,允许follower同步,如果follower落后太多,则会被丢弃
syncLimit=5
# the directory where the snapshot is stored.
#日志位置
dataDir=F:\\zookeeper-3.3.6\\logs
# the port at which the clients will connect 监听客户端连接的端口
clientPort=2181
w系统下伪集群安装
- 在 一台机器上通过伪集群运行时可以修改 zkServer.cmd 文件在里面加入
- set ZOOCFG=..\conf\zoo1.cfg 这行,另存为 zkSer