1. Download the binary RocketMQ zip package first
Download address:
https://www.apache.org/dyn/closer.cgi?path=rocketmq/4.9.0/rocketmq-all-4.9.0-bin-release.zip
Copy the code
Set environment variables after downloading:
NAMESRV_ADDR = 127.0.0.1:9876 ROCKETMQ_HOME = D: \ zhongjianjian \ rocketmq - all - 4.9.0 - bin - release \ rocketmq - all - 4.9.0 - bin - releaseCopy the code
2. Start namesrv
Open a CMD window and enter the following command:
start mqnamesrv.cmd
Copy the code
3. Start the broker
Open a CMD window and enter the following command:
CMD -n 127.0.0.1:9876 autoCreateTopicEnable=trueCopy the code
4. Use the monitoring web client
Download address:
https://github.com/apache/rocketmq-externals.git
Copy the code
Package the RocketMQ-Console project
mvn clean package -Dmaven.test.skip=true
Copy the code
Start the jars
Java jar rocketmq - the console - ng - 2.0.0. JarCopy the code
Visit address:
http://localhost:8080
Copy the code