From 48c34ee280c8f53da7fcf0df83137554b3d08690 Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Thu, 23 Apr 2020 16:54:11 +0800 Subject: [PATCH 1/7] update the pd-ctl docs Signed-off-by: Ryan Leung --- pd-control.md | 249 +++++++++++++++++++++++--------------------------- 1 file changed, 116 insertions(+), 133 deletions(-) diff --git a/pd-control.md b/pd-control.md index 638ea2153f14..7d3a3253f902 100644 --- a/pd-control.md +++ b/pd-control.md @@ -11,7 +11,7 @@ PD Control 是 PD 的命令行工具,用于获取集群状态信息和调整 ## 源码编译 1. [Go](https://golang.org/) Version 1.9 以上 -2. 在 PD 项目根目录使用 `make` 命令进行编译,生成 bin/pd-ctl +2. 在 PD 项目根目录使用 `make` 或者 `make pd-ctl` 命令进行编译,生成 bin/pd-ctl ## 下载安装包 @@ -72,17 +72,17 @@ export PD_ADDR=http://127.0.0.1:2379 && - 指定 PEM 格式的 SSL 证书的文件路径 - 默认值:"" -### \-\-detach,-d +### --detach,-d + 使用单命令行模式(不进入 readline) + 默认值: true -### \-\-help,-h +### --help,-h + 输出帮助信息 + 默认值:false -### \-\-interact,-i +### --interact,-i + 使用交互模式(进入 readline) + 默认值:false @@ -92,7 +92,7 @@ export PD_ADDR=http://127.0.0.1:2379 && - 指定 PEM 格式的 SSL 证书密钥文件路径,即 `--cert` 所指定的证书的私钥 - 默认值: "" -### \-\-pd,-u +### --pd,-u + 指定 PD 的地址 + 默认地址:`http://127.0.0.1:2379` @@ -124,7 +124,7 @@ export PD_ADDR=http://127.0.0.1:2379 && } ``` -### config [show | set \