Skip to content

Commit 217b263

Browse files
authored
doc: Update rmqtt production README.md
1 parent 994a5f2 commit 217b263

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

shell/prod/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@
33
相比于开发配置:
44
1. 禁用了 websocket socket。
55
2. 在 rmqtt-acl 添加了简单的权限配置。
6+
7+
8+
### 使用 RMQTT 注意事项
9+
#### 默认 ACL 注意事项
10+
1. connect 和 pubsub 要单独配置,例如
11+
```toml
12+
rules = [
13+
["allow", { user = "nodes", password ="password" }, "connect"],
14+
["allow", { user = "nodes" }, "pubsub", ["cmd/%c", "cmd/%c/resp"]]
15+
]
16+
```
17+
2. clientId 会和 user 一一对应,不要随意更改。
18+
#### 重启
19+
目前 RMQTT 使用docker restart 重启,会出现端口占用问题 https://github.com/rmqtt/rmqtt/issues/58

0 commit comments

Comments
 (0)