Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker deployment method to QuickStart guide for Version 4.x #645

Merged

Conversation

kaxiya1021
Copy link
Contributor

What is the purpose of the change

The purpose of this change is to enhance the QuickStart guide by adding a Docker deployment method specifically tailored for RocketMQ Version 4.x.

docs/01-introduction/04quickstartWithDocker4.x.md Outdated Show resolved Hide resolved
}
```

4. 在已创建的Java工程中,创建订阅普通消息程序并运行。Apache RocketMQ 支持[SimpleConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype)和[PushConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype)两种消费者类型,您可以选择以下任意一种方式订阅消息。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.x没有SimpleConsumer

Comment on lines 64 to 85
# 创建配置文件broker.conf
vim /docker/rocketmq/conf/broker.conf
```

```text
# 集群名称
brokerClusterName = DefaultCluster
# 节点名称
brokerName = broker-a
# broker id节点ID, 0 表示 master, 其他的正整数表示 slave,不能小于0
brokerId = 0
# 在每天的什么时间删除已经超过文件保留时间的 commit log,默认值04
deleteWhen = 04
# 以小时计算的文件保留时间 默认值72小时
fileReservedTime = 48
# Broker角色
brokerRole = ASYNC_MASTER
# 刷盘方式
flushDiskType = ASYNC_FLUSH
# 此处为示例,实际使用时请替换为真实的 Broker 地址
brokerIP1 = 127.0.0.1
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

能否用默认的broker.conf而不是让客户自己再去编写

@kaxiya1021 kaxiya1021 closed this May 29, 2024
@kaxiya1021 kaxiya1021 deleted the kaxiya1021-dokcer4.x branch May 29, 2024 00:50
@kaxiya1021 kaxiya1021 restored the kaxiya1021-dokcer4.x branch May 29, 2024 00:52
@kaxiya1021 kaxiya1021 reopened this May 29, 2024
Copy link
Member

@ShannonDing ShannonDing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM

@RongtongJin RongtongJin merged commit e7e1e50 into apache:new-official-website May 29, 2024
1 check passed
@ShannonDing
Copy link
Member

it also works well on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants