building and deploying a single-Master RocketMQ cluster
- 1 、下载RocketMQ安装包(这里是通过源码安装)
- 2、安装
- 3、启动nameserver
- 4、启动borker
- Start the broker service
- Verify that the broker service is started successfully, for example, the broker's ip is 192.168.1.2 and the name is broker-a
1 、下载RocketMQ安装包(这里是通过源码安装)
2、安装
$ unzip rocketmq-all-4.9.4-source-release.zip
$ cd rocketmq-all-4.9.4-source-release/
$ mvn -Prelease-all -DskipTests clean install -U
$ cd distribution/target/rocketmq-4.9.4/rocketmq-4.9.4
3、启动nameserver
### Start the namesrv service
$ nohup sh bin/mqnamesrv &
### Verify that the namesrv service is started successfully
$ tail -f ~/logs/rocketmqlogs/namesrv.log
The Name Server boot success...
4、启动borker
Start the broker service
$ nohup sh bin/mqbroker -n localhost:9876 &
Verify that the broker service is started successfully, for example, the broker’s ip is 192.168.1.2 and the name is broker-a
$ tail -f ~/logs/rocketmqlogs/broker.log
The broker[broker-a,192.169.1.2:10911] boot success…