diff --git a/README_ZH.md b/README_ZH.md index ea3f360..d8e713b 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -47,7 +47,7 @@ MyHub能自动停用故障节点数据库,在故障节点数据库恢重启后 wget https://github.com/sgoby/myhub/releases/download/0.0.1/myhub-0.0.1-1.x86_64.rpm rpm -ivh myhub-0.0.1-1.x86_64.rpm - + # Default config file path: /usr/local/myhub/conf/myhub.xml - 启动 service myhub start @@ -64,7 +64,9 @@ MyHub能自动停用故障节点数据库,在故障节点数据库恢重启后 echo $GOPATH go build -o bin/myhub src/github.com/sgoby/myhub/cmd/myhub/main.go echo Congratulations. Build success! - +- 启动 + ./bin/myhub --cnf conf/myhub.xml + - Windows 上安装(build_windows.bat) git clone https://github.com/sgoby/myhub src/github.com/sgoby/myhub @@ -72,6 +74,8 @@ MyHub能自动停用故障节点数据库,在故障节点数据库恢重启后 set GOPATH=%GOPATH%;%dir% go build -o bin/myhub.exe src/github.com/sgoby/myhub/cmd/myhub/main.go echo Congratulations. Build success! +- 启动 + ./bin/myhub.exe --cnf conf/myhub.xml # MyHub配置入门 @@ -244,4 +248,4 @@ Myhub 目前支持三种分片规则: (2. date 规则表示每个分表按时间划分的行数,值为数字和[y|m|d]组合 如:rowLimit = "1ym" 表示每个分表存的数据是一个月 (3. hash 规则表示每个分表按hash取模的余数,值类型为数字 如:rowLimit = "2" 10 % 0 和 10 % 1 是存在同一个表中 -- 'shard' -> 'between' 分片所在节点数据的限制范围 \ No newline at end of file +- 'shard' -> 'between' 分片所在节点数据的限制范围