安装
- 先去官网下载(http://rocketmq.apache.org/),有两种方式,一种下载源码安装启动,另一种下载二进制文件直接启动
- 下载源码,安装启动
> unzip rocketmq-all-4.8.0-source-release.zip
> cd rocketmq-all-4.8.0/
> mvn -Prelease-all -DskipTests clean install -U
> cd distribution/target/rocketmq-4.8.0/rocketmq-4.8.0
-
安装完成
image.png - 启动集群管理namesrv,环境变量(JAVA_HOME)要配置好
> nohup sh bin/mqnamesrv &
> tail -f ~/logs/rocketmqlogs/namesrv.log
The Name Server boot success...
- 启动broker
> nohup sh bin/mqbroker -n localhost:9876 &
> tail -f ~/logs/rocketmqlogs/broker.log
The broker[%s, 172.30.30.233:10911] boot success...
开启Hello Word之旅