From 7462afcfb5bfe6f0c83a17f66eddcf24dbe54afb Mon Sep 17 00:00:00 2001 From: zhouyuyan Date: Fri, 19 Jan 2018 13:49:53 +0800 Subject: [PATCH] modify readme --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7e141de..170870d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ cd hmq $ go run main.go ``` -### broker.config +### hmq.config ~~~ { "workerNum": 4096, @@ -22,9 +22,9 @@ $ go run main.go "host": "0.0.0.0", "cluster": { "host": "0.0.0.0", - "port": "1993", - "routers": ["10.10.0.11:1993","10.10.0.12:1993"] + "port": "1993" }, + "router": "127.0.0.1:9888", "wsPort": "1888", "wsPath": "/ws", "wsTLS": true, @@ -61,6 +61,13 @@ $ go run main.go * 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 ~~~ | Prefix | Examples |