1、环境变量配置rocket mq地址
ROCKETMQ_HOME=D:\rocketmq-all-5.1.3-bin-release
2、找到rocket mq目录的地址,进入bin目录
1)启动namesrv服务
start mqnamesrv.cmd
2)启动brocker服务
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true
3)启动proxy代理服务
conf文件下的配置文件rmq-proxy.json
{
"rocketMQClusterName": "DefaultCluster",
"remotingListenPort": 9080
}
启动命令: start mqproxy.cmd -n 127.0.0.1:9876
3、RocketMQ Dashboard
4、rocket mq windows默认存储路径变更
改为D盘D:\rocketmq-all-5.1.3-bin-release\data文件夹
修改mqbroker.cmd文件
5、一键启动所有namsrv、broker、proxy和dashboard脚本命令
start.bat
D: cd D:\rocketmq-all-5.1.3-bin-release\bin start mqnamesrv.cmd start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true TIMEOUT /T 10 start mqproxy.cmd -n 127.0.0.1:9876 cd D:\rocketmq-all-5.1.3-bin-release\dashboard start start.bat
最后一个为本地rocket mq dashboard路径