Remove blank lines after code block markers

This commit is contained in:
yeasy
2026-03-21 22:36:09 -07:00
parent 312f8fea42
commit 9ac19d79ee
132 changed files with 0 additions and 1517 deletions

View File

@@ -20,14 +20,12 @@ $ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.17/etcd-v3.5.17
$ tar xzvf etcd-v3.5.17-linux-amd64.tar.gz
$ cd etcd-v3.5.17-linux-amd64
```
解压后可以看到文件包括
```bash
$ ls
Documentation README-etcdctl.md README.md READMEv2-etcdctl.md etcd etcdctl
```
其中 `etcd` 是服务主文件`etcdctl` 是提供给用户的命令客户端其他文件是支持文档
下面将 `etcd` `etcdctl` 文件放到系统可执行目录 (例如 `/usr/local/bin/`)
@@ -35,7 +33,6 @@ Documentation README-etcdctl.md README.md READMEv2-etcdctl.md etcd etcdctl
```bash
$ sudo cp etcd* /usr/local/bin/
```
默认 `2379` 端口处理客户端的请求`2380` 端口用于集群各成员间的通信启动 `etcd` 显示类似如下的信息
```bash
@@ -44,7 +41,6 @@ $ etcd
2017-12-03 11:18:34.411579 I | embed: listening for peers on http://localhost:2380
2017-12-03 11:18:34.411938 I | embed: listening for client requests on localhost:2379
```
此时可以使用 `etcdctl` 命令进行测试设置和获取键值 `testkey: "hello world"`检查 `etcd` 服务是否启动成功
```bash
@@ -58,7 +54,6 @@ $ etcdctl get testkey
testkey
hello world
```
说明 etcd 服务已经成功启动了
### 15.2.2 Docker 镜像方式运行
@@ -86,7 +81,6 @@ quay.io/coreos/etcd:v3.5.17 \
--logger zap \
--log-outputs stderr
```
打开新的终端按照上一步的方法测试 `etcd` 是否成功启动
### 15.2.3 macOS 中运行