Rocket Mq源码调试环境搭建

源码下载

rocketmq 官网自行下载所需要的版本

导入idea

源码下载后,导入idea中采用maven的方式

环境配置及运行

在完成导入操作后,还需要执行以下操作。

  1. 自行在项目顶级目录新建conf、logs、storemes(该文件夹需要与broker.conf配置保持一致即可)文件夹
    将distribution中三文件复制到conf中
    并需要在broker中配置store相关
    源码可能未有该配置
# 存储路径
storePathRootDir=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes
# commitLog 路径
storePathCommitLog=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes\\commitlog
# 消费队列存储路径
storePathConsumeQueue=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes\\consumequeue
# 消息索引存储路径
storePathIndex=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes\\index
# checkePoint 文件存储路径
storeCheckpoint=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes\\checkpoint
# abort 文件存储路径
abortFile=D:\\ideause\\rocketmq-all-4.8.0-source-release\\storemes\\abort

  1. namesrv启动配置
    在这里插入图片描述

  2. broker启动配置
    在这里插入图片描述

补充:2,3所需要配置如下
ROCKETMQ_HOME=D:\ideause\rocketmq-all-4.8.0-source-release
-c D:\ideause\rocketmq-all-4.8.0-source-release\conf\broker.conf

最后,即可成功启动调试

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值