modify readme

This commit is contained in:
zhouyuyan
2018-01-19 13:49:53 +08:00
parent 114e6f901e
commit 7462afcfb5

View File

@@ -14,7 +14,7 @@ $ cd hmq
$ go run main.go $ go run main.go
``` ```
### broker.config ### hmq.config
~~~ ~~~
{ {
"workerNum": 4096, "workerNum": 4096,
@@ -22,9 +22,9 @@ $ go run main.go
"host": "0.0.0.0", "host": "0.0.0.0",
"cluster": { "cluster": {
"host": "0.0.0.0", "host": "0.0.0.0",
"port": "1993", "port": "1993"
"routers": ["10.10.0.11:1993","10.10.0.12:1993"]
}, },
"router": "127.0.0.1:9888",
"wsPort": "1888", "wsPort": "1888",
"wsPath": "/ws", "wsPath": "/ws",
"wsTLS": true, "wsTLS": true,
@@ -61,6 +61,13 @@ $ go run main.go
* Flexible ACL * Flexible ACL
### Cluster
```bash
1, start router for hmq (https://github.com/fhmq/router.git)
2, config router in hmq.config ("router": "127.0.0.1:9888")
```
### QUEUE SUBSCRIBE ### QUEUE SUBSCRIBE
~~~ ~~~
| Prefix | Examples | | Prefix | Examples |