RocketMq建议学习官网
1 下载源码包
RocketMq官网源码
2 配置IDEA环境目录
NamesrvStartup 配置 ROCKETMQ_HOME=C:\rocketmq
3 namesrv 启动成功
C:\rocketmq\conf\broker.conf 配置文件
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
autoCreateTopicEnable=true
# nameServer 地址 分号分割
namesrvAddr = 127.0.0.1:9876
# 存储路径
storePathRootDir = c:\\rocketmq\\store
# commitLog 存储路径
storePathCommitLog = c:\\rocketmq\\store\\commitlog
#消费队列存储路径
storePathConsumeQueue = c:\\rocketmq\\store\\consumequeue
# 消息索引存储路径
storePathindex = c:\\rocketmq\\store\\index
# checkpoint 文件存储路径
storeCheckpoint = c:\\rocketmq\\store\\checkpoint
# abort 文件存储路径
abortFile = c:\\rocketmq\\store\\abort
idea启动指定环境
5 broker启动完成
6 启动管理后台
console 配置文件
server.contextPath=
server.port=8088
#spring.application.index=true
spring.application.name=rocketmq-console
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
spring.http.encoding.force=true
logging.config=classpath:logback.xml
#if this value is empty,use env value rocketmq.config.namesrvAddr NAMESRV_ADDR | now, you can set it in ops page.default localhost:9876
rocketmq.config.namesrvAddr=192.168.3.19:9876
#if you use rocketmq version < 3.5.8, rocketmq.config.isVIPChannel should be false.default true
rocketmq.config.isVIPChannel=false
#rocketmq-console's data path:dashboard/monitor
rocketmq.config.dataPath=c:\\rocketmq\\rocketmq-console\\data
#set it false if you don't want use dashboard.default true
rocketmq.config.enableDashBoardCollect=true
启动后界面