etcd 单机集群(静态无发现 无证书)
admin
2023-03-18 21:25:08
0

setenforce0

 

Install  go

#cd /opt && wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz

#tar -C /usr/local -xzf go1.8.3.linux-amd64.tar.gz

#exportPATH=$PATH:/usr/local/go/bin

 

go -h

 

 

 

Installdocker

apt install docker.io  docker

docker p_w_picpaths

 

 

 

install etcd cluster on local

需要1.8版本以上的go

 

git clone https://github.com/coreos/etcd.git

 

cd /etcd && ./build

cp /bin/* /usr/sbin/.

 

 

etcd -name etcd01 --data-dir /data1 \

 --initial-advertise-peer-urls http://10.1.1.42:2380 \

 --listen-peer-urls http://10.1.1.42:2380 \

 --listen-client-urls http://10.1.1.42:2379,http://127.0.0.1:2379 \

 --advertise-client-urls http://10.1.1.42:2379 \

 --initial-cluster-token etcd-cluster \

 --initial-clusteretcd01=http://10.1.1.42:2380,etcd02=http://10.1.1.42:12380,etcd03=http://10.1.1.42:22380\

 --initial-cluster-state new

 

 

etcd -name etcd02 --data-dir /data2 \

 --initial-advertise-peer-urls http://10.1.1.42:12380 \

 --listen-peer-urls http://10.1.1.42:12380 \

 --listen-client-urls http://10.1.1.42:12379,http://127.0.0.1:12379 \

 --advertise-client-urls http://10.1.1.42:12379 \

 --initial-cluster-token etcd-cluster \

 --initial-clusteretcd01=http://10.1.1.42:2380,etcd02=http://10.1.1.42:12380,etcd03=http://10.1.1.42:22380\

 --initial-cluster-state new

 

etcd -name etcd03 --data-dir /data3 \

 --initial-advertise-peer-urls http://10.1.1.42:22380 \

 --listen-peer-urls http://10.1.1.42:22380 \

 --listen-client-urls http://10.1.1.42:22379,http://127.0.0.1:22379 \

 --advertise-client-urls http://10.1.1.42:22379 \

 --initial-cluster-token etcd-cluster \

 --initial-clusteretcd01=http://10.1.1.42:2380,etcd02=http://10.1.1.42:12380,etcd03=http://10.1.1.42:22380\

 --initial-cluster-state new

 

 

验证etcd

etcdctl member list


相关内容

热门资讯

【今日要闻】“卡贝大厅开挂神器... 家人们!今天小编来为大家解答卡贝大厅透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很...
今日重大发现“赏金女王到底是不... 网上科普关于“赏金女王有没有挂”话题很是火热,小编也是针对赏金女王作*弊开挂的方法以及开挂对应的知识...
玩家分享攻略“达人十三水开挂神... 您好:达人十三水这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这款游...
原创 以... 2025年12月23日晚间正当我们准备休息时,一位朋友发来了一条信息,“你快看看这个,无法无天了都!...
【第一资讯】“新海贝之城拼三张... 您好:新海贝之城拼三张这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在...
最新引进“青鸾牛牛可以开挂吗?... 家人们!今天小编来为大家解答青鸾牛牛透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很...
玩家攻略科普“欢又聊红包究竟有... 有 亲,根据资深记者爆料欢又聊红包是可以开挂的,确实有挂(咨询软件无需打...
【第一消息】“赏金女王有没有挂... 您好:赏金女王这款游戏可以开挂,确实是有挂的,需要了解加客服微信【4282891】很多玩家在这款游戏...
【今日要闻】“同乡游麻将是不是... 有 亲,根据资深记者爆料同乡游麻将是可以开挂的,确实有挂(咨询软件无需打...
【今日要闻】“新版悟空怎么开挂... 家人们!今天小编来为大家解答新版悟空透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买很...