Skip to content

Commit

Permalink
reference: update pd-ctl flags (pingcap#1882)
Browse files Browse the repository at this point in the history
* update pd-ctl flags

* Update pd-control.md

* Update pd-control.md

* Update pd-control.md

* Update pd-control.md

* Update pd-control.md

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v2.1/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v2.1/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v3.0/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v2.1/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update v2.1/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>

* Update dev/reference/tools/pd-control.md

Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
lhy1024 and TomShawn authored Oct 23, 2019
1 parent 69c85ad commit 675bb44
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 33 deletions.
30 changes: 20 additions & 10 deletions dev/reference/tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,42 @@ export PD_ADDR=http://127.0.0.1:2379 &&

## 命令行参数(flags)

### \-\-pd,-u
### --cacert

+ 指定 PD 的地址
+ 默认地址: `http://127.0.0.1:2379`
+ 环境变量: PD_ADDR
- 指定 PEM 格式的受信任 CA 证书的文件路径
- 默认值:""

### --cert

- 指定 PEM 格式的 SSL 证书的文件路径
- 默认值:""

### \-\-detach,-d

+ 使用单命令行模式(不进入 readline)
+ 默认值: true

### --cacert
### \-\-help,-h

- 指定 PEM 格式的受信任 CA 的证书文件路径
- 默认值: ""
+ 输出帮助信息
+ 默认值:false

### --cert
### \-\-interact,-i

- 指定 PEM 格式的 SSL 证书文件路径
- 默认值: ""
+ 使用交互模式(进入 readline)
+ 默认值:false

### --key

- 指定 PEM 格式的 SSL 证书密钥文件路径,即 `--cert` 所指定的证书的私钥
- 默认值: ""

### \-\-pd,-u

+ 指定 PD 的地址
+ 默认地址:`http://127.0.0.1:2379`
+ 环境变量:`PD_ADDR`

### --version,-V

- 打印版本信息并退出
Expand Down
24 changes: 12 additions & 12 deletions v2.1/reference/tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@ export PD_ADDR=http://127.0.0.1:2379

## 命令行参数(flags)

### \-\-pd,-u

+ 指定 PD 的地址
+ 默认地址: `http://127.0.0.1:2379`
+ 环境变量: PD_ADDR

### \-\-detach,-d

+ 使用单命令行模式(不进入 readline)
+ 默认值: false

### --cacert

- 指定 PEM 格式的受信任 CA 的证书文件路径
Expand All @@ -62,11 +51,22 @@ export PD_ADDR=http://127.0.0.1:2379
- 指定 PEM 格式的 SSL 证书文件路径
- 默认值: ""

### \-\-detach,-d

+ 使用单命令行模式(不进入 readline)
+ 默认值:false

### --key

- 指定 PEM 格式的 SSL 证书密钥文件路径,即 `--cert` 所指定的证书的私钥
- 默认值: ""

### \-\-pd,-u

+ 指定 PD 的地址
+ 默认地址:`http://127.0.0.1:2379`
+ 环境变量:`PD_ADDR`

### --version,-V

- 打印版本信息并退出
Expand Down Expand Up @@ -735,4 +735,4 @@ logic: 120102
{"id":4,"remove_peer":[31]}
{"id":22,"remove_peer":[30]}
...
```
```
27 changes: 16 additions & 11 deletions v3.0/reference/tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ export PD_ADDR=http://127.0.0.1:2379 &&

## 命令行参数(flags)

### \-\-pd,-u

+ 指定 PD 的地址
+ 默认地址: `http://127.0.0.1:2379`
+ 环境变量: PD_ADDR

### \-\-detach,-d

+ 使用单命令行模式(不进入 readline)
+ 默认值: true

### --cacert

- 指定 PEM 格式的受信任 CA 的证书文件路径
Expand All @@ -71,11 +60,27 @@ export PD_ADDR=http://127.0.0.1:2379 &&
- 指定 PEM 格式的 SSL 证书文件路径
- 默认值: ""

### \-\-detach,-d

+ 使用单命令行模式(不进入 readline)
+ 默认值:true

### \-\-interact,-i

+ 使用交互模式(进入 readline)
+ 默认值:false

### --key

- 指定 PEM 格式的 SSL 证书密钥文件路径,即 `--cert` 所指定的证书的私钥
- 默认值: ""

### \-\-pd,-u

+ 指定 PD 的地址
+ 默认地址:`http://127.0.0.1:2379`
+ 环境变量:`PD_ADDR`

### --version,-V

- 打印版本信息并退出
Expand Down

0 comments on commit 675bb44

Please sign in to comment.