1 源码下载
http://rocketmq.apache.org/dowloading/releases/
2 IDEA 导入
选中mq问价夹pom文件
3 执行命令
mvn install -Dmaven.test.skip=true
4 启动NameServer
4.1 创建空文件夹
4.2 复制配置文件
复制文件到conf目录
4.3 设置启动参数
ROCKETMQ_HOME=G:\RocketMQ
4.4 启动
5 启动Broker
5.1 修改配置文件broker.conf
#nameServer
namesrvAddr=127.0.0.1:9876
autoCreateTopicEnable = true
storePathRootDir = G:\\RocketMQ\\store
#commitLog存储路径
storePathCommitLog = G:\\RocketMQ\\store\\commitlog
#消费队列存储路径
storePathConsumeQueue =G:\\RocketMQ\\store\\consumequeue
#消息索引存储路径
storePathindex = G:\\RocketMQ\\store\\index
#checkpoint文件存储路径
storeCheckpoint = G:\\RocketMQ\\store\\checkpoint
#abort文件存储路径
abortFile = G:\\RocketMQ\\store\\abort
5.2 配置环境变量
-c G:\RocketMQ\conf\broker.conf
ROCKETMQ_HOME=G:\RocketMQ