[ISSUE #4993] Polish the documents for mq Dledger Quick Deployment (#4994)

This commit is contained in:
mxsm
2022-09-05 08:27:48 +08:00
committed by GitHub
parent d0595743b7
commit a3e54fcb1b
2 changed files with 44 additions and 34 deletions
+22 -17
View File
@@ -11,33 +11,36 @@
#### 1.1 构建 DLedger
`git clone https://github.com/openmessaging/dledger.git`
`cd dledger`
`mvn clean install -DskipTests`
```shell
$ git clone https://github.com/openmessaging/dledger.git
$ cd dledger
$ mvn clean install -DskipTests
```
#### 1.2 构建 RocketMQ
`git clone https://github.com/apache/rocketmq.git`
`cd rocketmq`
`git checkout -b store_with_dledger origin/store_with_dledger`
`mvn -Prelease-all -DskipTests clean install -U`
```shell
$ git clone https://github.com/apache/rocketmq.git
$ cd rocketmq
$ git checkout -b store_with_dledger origin/store_with_dledger
$ mvn -Prelease-all -DskipTests clean install -U
```
### 2. 快速部署
在构建成功后
`cd distribution/target/apache-rocketmq`
`sh bin/dledger/fast-try.sh start`
```shell
#{rocketmq-version} replace with rocketmq actual version. example: 5.0.0-SNAPSHOT
$ cd distribution/target/rocketmq-{rocketmq-version}/rocketmq-{rocketmq-version}
$ sh bin/dledger/fast-try.sh start
```
如果上面的步骤执行成功,可以通过 mqadmin 运维命令查看集群状态。
`sh bin/mqadmin clusterList -n 127.0.0.1:9876`
```shell
$ sh bin/mqadmin clusterList -n 127.0.0.1:9876
```
顺利的话,会看到如下内容:
@@ -49,7 +52,9 @@
关闭快速集群,可以执行:
`sh bin/dledger/fast-try.sh stop`
```shell
$ sh bin/dledger/fast-try.sh stop
```
快速部署,默认配置在 conf/dledger 里面,默认的存储路径在 /tmp/rmqstore。