- 64bit OS, Linux/Unix/Mac 不建议window;
- 64bit JDK 1.8+;
- Maven 3.2.x;
- Git;
- 4g+ 空间
官网下载地址: https://archive.apache.org/dist/rocketmq/4.7.0/rocketmq-all-4.7.0-source-release.zip
github下载地址:https://github.com/apache/rocketmq/releases
> unzip rocketmq-all-4.7.0-source-release.zip
> cd rocketmq-all-4.7.0/
> mvn -Prelease-all -DskipTests clean install -U
> cd distribution/target/rocketmq-4.7.0/rocketmq-4.7.0
> nohup sh bin/mqnamesrv &
> tail -f ~/logs/rocketmqlogs/namesrv.log
The Name Server boot success...
> nohup sh bin/mqbroker -n localhost:9876 &
> tail -f ~/logs/rocketmqlogs/broker.log
The broker[%s, 172.30.30.233:10911] boot success...
> export NAMESRV_ADDR=localhost:9876
> sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
SendResult [sendStatus=SEND_OK, msgId= ...
> sh bin/tools.sh org.apache.rocketmq.example.quickstart.Consumer
ConsumeMessageThread_%d Receive New Messages: [MessageExt...
> sh bin/mqshutdown broker
The mqbroker(36695) is running...
Send shutdown request to mqbroker(36695) OK
> sh bin/mqshutdown namesrv
The mqnamesrv(36664) is running...
Send shutdown request to mqnamesrv(36664) OK
懒人包 下载地址:https://github.com/chywx/rocketmq-console-alarm
感谢开源世界
注意:部分资料从网络收集整理,若有错误,请指正,多谢。
原文:https://www.cnblogs.com/guhualin/p/12814970.html