下载压缩包
下载地址:https://rocketmq.apache.org/dowloading/releases/
解压,设置系统变量
- 变量名:ROCKETMQ_HOME
- 变量值:MQ解压路径\MQ文件夹名
- 设置Path:%ROCKETMQ_HOME%\bin
启动
- start mqnamesrv.cmd
- start mqbroker.cmd -n 127.0.0.1:9876
RocketMQ插件部署
- git clone https://github.com/apache/rocketmq-externals.git
- 设置 rocketmq-externals\rocketmq-console\src\main\resources\application.properties [主要是端口号和NameServer地址,可以不设置]
- 进入\rocketmq-externals\rocketmq-console,执行 mvn install 和 mvn clean package -Dmaven.test.skip=true
- 启动BAT:
@echo off
java -jar D:\Project\rocketmq-externals\rocketmq-console\target\rocketmq-console-ng-2.0.0.jar --server.port=12581 --rocketmq.config.namesrvAddr=localhost:9876
@pause
- 访问:127.0.0.1:12581