Refresh deployment guidance

This commit is contained in:
yeasy
2026-03-30 22:48:59 -07:00
parent ced3ff065a
commit e3e21e7a7d
3 changed files with 20 additions and 18 deletions
+6 -3
View File
@@ -71,16 +71,19 @@ quay.io/coreos/etcd:v3.5.21 \
--name s1 \
--data-dir /etcd-data \
--listen-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://0.0.0.0:2379 \
--advertise-client-urls http://<HOST_IP>:2379 \
--listen-peer-urls http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://0.0.0.0:2380 \
--initial-cluster s1=http://0.0.0.0:2380 \
--initial-advertise-peer-urls http://<HOST_IP>:2380 \
--initial-cluster s1=http://<HOST_IP>:2380 \
--initial-cluster-token tkn \
--initial-cluster-state new \
--log-level info \
--logger zap \
--log-outputs stderr
```
其中 `listen-*` 可以绑定 `0.0.0.0` 监听所有网卡 `advertise-*` 应填写其他节点或客户端**实际可访问的主机地址**不能直接写成 `0.0.0.0`
打开新的终端按照上一步的方法测试 `etcd` 是否成功启动
### 15.2.3 macOS 中运行