mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
modify readme
This commit is contained in:
13
README.md
13
README.md
@@ -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 |
|
||||||
|
|||||||
Reference in New Issue
Block a user