1.添加配置文件
(1)master节点
cat >/etc/etcd/etcd.conf <<EOF#[Member] ETCD_NAME="etcd01" ETCD_DATA_DIR="/var/lib/etcd/default.etcd" ETCD_LISTEN_PEER_URLS="https://172.18.6.39:2380" ETCD_LISTEN_CLIENT_URLS="https://172.18.6.39:2379" #[Clustering] ETCD_INITIAL_ADVERTISE_PEER_URLS="https://172.18.6.39:2380" ETCD_ADVERTISE_CLIENT_URLS="https://172.18.6.39:2379" ETCD_INITIAL_CLUSTER="etcd01=https://172.18.6.39:2380,etcd02=https://1172.18.6.40:2380,etcd03=https://172.18.6.41:2380" ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster" ETCD_INITIAL_CLUSTER_STATE="new"EOF
原文地址:https://www.cnblogs.com/dingkailinux/p/9264911.html
时间: 2024-10-18 11:11:31