-
Notifications
You must be signed in to change notification settings - Fork 242
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
Add Docker deployment method to QuickStart guide for Version 4.x #645
Conversation
} | ||
``` | ||
|
||
4. 在已创建的Java工程中,创建订阅普通消息程序并运行。Apache RocketMQ 支持[SimpleConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype)和[PushConsumer](https://rocketmq.apache.org/zh/docs/featureBehavior/06consumertype)两种消费者类型,您可以选择以下任意一种方式订阅消息。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4.x没有SimpleConsumer
# 创建配置文件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 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能否用默认的broker.conf而不是让客户自己再去编写
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM
it also works well on macOS. |
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.