One, the local environment

  • MacOS 11.1 Big Sur
  • Rocketmq 4.7.0
  • SpringBoot against 2.4.1

Two, operation steps

1. Download RocketMQ

https://archive.apache.org/rocketmq/4.7.0/rocketmq-all-4.7.0-bin-release.zip

2. Decompress yourself

Decompress it using a tool

3. Run the name server

./mqnamesrv 

4. Run brokers

./mqbroker -n localhost:9876 

Download the Visual console

Use rocketmq-console-ng, a visual console provided by Apache

https://github.com/apache/rocketmq-externals/tree/master/rocketmq-console 

Example Change the name server address in the configuration file

Rocketmq. Config. NamesrvAddr = 127.0.0.1:9876

See the figure below

Browse localhost: 8080 to see the effect

Third, the list of questions

1. Write code according to the example on the official website. The following error is reported when the producer service is started

Exception in thread "main" org.apache.rocketmq.client.exception.MQClientException: No route info of this topic, TopicTest 

The official example tutorial is version 4.3.0

Solution:

Use your own version of RocketMQ

[](https://blog.xueyao.me/2020-y…