mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-27 12:15:34 +00:00
Remove blank lines after code block markers
This commit is contained in:
@@ -80,7 +80,6 @@ OPTIONS:
|
||||
--user="" username[:password] for authentication (prompt if password is not supplied)
|
||||
-w, --write-out="simple" set the output format (fields, json, protobuf, simple, table)
|
||||
```
|
||||
|
||||
### 15.4.1 数据库操作
|
||||
|
||||
数据库操作围绕对键值和目录的 CRUD (符合 REST 风格的一套操作:Create) 完整生命周期的管理。
|
||||
@@ -95,7 +94,6 @@ etcd 在键的组织上采用了层次化的空间结构 (类似于文件系统
|
||||
$ etcdctl put /testdir/testkey "Hello world"
|
||||
OK
|
||||
```
|
||||
|
||||
#### get
|
||||
|
||||
获取指定键的值。例如
|
||||
@@ -107,7 +105,6 @@ $ etcdctl get testkey
|
||||
testkey
|
||||
hello
|
||||
```
|
||||
|
||||
支持的选项为
|
||||
|
||||
`--sort` 对结果进行排序
|
||||
@@ -122,7 +119,6 @@ hello
|
||||
$ etcdctl del testkey
|
||||
1
|
||||
```
|
||||
|
||||
### 15.4.2 非数据库操作
|
||||
|
||||
#### watch
|
||||
@@ -137,7 +133,6 @@ PUT
|
||||
testkey
|
||||
2
|
||||
```
|
||||
|
||||
#### member
|
||||
|
||||
通过 `list`、`add`、`update`、`remove` 命令列出、添加、更新、删除 etcd 实例到 etcd 集群中。
|
||||
|
||||
Reference in New Issue
Block a user