mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 02:23:24 +08:00
This commit is contained in:
@@ -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。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user