etcd單機集群(靜態(tài)無發(fā)現(xiàn)無證書)-創(chuàng)新互聯(lián)

setenforce0

目前創(chuàng)新互聯(lián)已為數(shù)千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)站空間、網(wǎng)站托管、企業(yè)網(wǎng)站設(shè)計、奉化網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

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

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

網(wǎng)頁題目:etcd單機集群(靜態(tài)無發(fā)現(xiàn)無證書)-創(chuàng)新互聯(lián)
新聞來源:http://muchs.cn/article46/ddcdeg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版用戶體驗、企業(yè)建站、微信小程序、定制開發(fā)、軟件開發(fā)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名