博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
etcd 安装与集群配置
阅读量:7105 次
发布时间:2019-06-28

本文共 1646 字,大约阅读时间需要 5 分钟。

hot3.png

download

  • 个人资源 etcd3.0:
  • 野生资源(请采用迅雷,翻墙来下载): wget

install

> tar -zxvf etcd-v0.4.6-linux-amd64.tar.gz> cd etcd-v0.4.6-linux-amd64> cp etcd* /usr/local/bin> etcd -version etcd version 0.4.6

单机启动

集群启动

注意 --data-dir 这个需要清洗 干净 。

nohup etcd --name infra0 --data-dir /var/lib/etcddir --initial-advertise-peer-urls http://10.10.1.92:2380 \  --listen-peer-urls http://10.10.1.92:2380 \  --listen-client-urls http://10.10.1.92:2379,http://127.0.0.1:2379 \  --advertise-client-urls http://10.10.1.92:2379 \  --initial-cluster-token etcd-cluster-1 \  --initial-cluster infra0=http://10.10.1.92:2380,infra1=http://10.10.1.93:2380,infra2=http://10.10.1.94:2380 \  --initial-cluster-state new > etcd.log &
nohup etcd --name infra1 --data-dir /var/lib/etcddir --initial-advertise-peer-urls http://10.10.1.93:2380 \  --listen-peer-urls http://10.10.1.93:2380 \  --listen-client-urls http://10.10.1.93:2379,http://127.0.0.1:2379 \  --advertise-client-urls http://10.10.1.93:2379 \  --initial-cluster-token etcd-cluster-1 \  --initial-cluster infra0=http://10.10.1.92:2380,infra1=http://10.10.1.93:2380,infra2=http://10.10.1.94:2380 \  --initial-cluster-state new > etcd.log &
nohup  etcd --name infra2 --data-dir /var/lib/etcddir --initial-advertise-peer-urls http://10.10.1.94:2380 \  --listen-peer-urls http://10.10.1.94:2380 \  --listen-client-urls http://0.0.0.0:2379 \  --advertise-client-urls http://10.10.1.94:2379 \  --initial-cluster-token etcd-cluster-1 \  --initial-cluster infra0=http://10.10.1.92:2380,infra1=http://10.10.1.93:2380,infra2=http://10.10.1.94:2380 \  --initial-cluster-state new > etcd.log &

转载于:https://my.oschina.net/u/2362111/blog/710129

你可能感兴趣的文章
内部类使用外部类的成员属性
查看>>
基于const的重载
查看>>
虹软AI 人脸识别SDK接入 — 性能优化篇(多线程)
查看>>
Spark examples 源码解析 (Spark SQL)
查看>>
无线路由器软件开发面试-曙光
查看>>
mac os x 查看网络端口情况
查看>>
编写shell脚本处理test文件
查看>>
搭建网络ghost服务器
查看>>
MySQL集群搭建步骤详解
查看>>
什么是活动目录
查看>>
spark install
查看>>
Postgres Hooks
查看>>
如何写好一篇技术博客?
查看>>
SQLserver将一张表a的数据插入另一张表b
查看>>
HTTP状态码详解
查看>>
META元标记详解
查看>>
Linux上Aapache 启动不了,报错信息:suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
查看>>
Ubuntu 16.04 部署自己的私有 Docker Registry
查看>>
python打印详细的异常信息
查看>>
FastDFS+Nginx安装配置笔记
查看>>