初步搭建RocketMQ环境

1. 去官网https://github.com/alibaba/RocketMQ/releases下载alibaba-rocketmq-3.2.6.tar.gz,这个是已经maven install好了的。当然也可以下载source code自己编译。

2. 进入解压后的项目的bin目录下,分别启动name server和broker server。

参考《搭建RocketMQ服务》、《阿里RocketMQ Quick Start

3. 编写producer和consumer测试代码

参考《阿里RocketMQ Quick Start》里面的代码,部署后执行可能会遇到异常:MQClientException: No route info of this topic

解决方案:https://github.com/alibaba/RocketMQ/issues/44

原文地址:https://www.cnblogs.com/tsiangleo/p/5496580.html