首页 > 其他分享 >etcd 部署

etcd 部署

时间:2022-09-05 11:15:18浏览次数:91  
标签:03 2022 22 05 部署 56 etcd

部署

 

mkdir -p etcd/
cd etcd/
# 下载etcd
wget https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-linux-amd64.tar.gz
# 把etcd压到一个本地目录 {etcd-dir} 
tar -zxvf etcd-v3.3.13-linux-amd64.tar.gz
# 把 {etcd-dir} 加到 PATH 环境变量。
export PATH=$PATH:/root/etcd/etcd-v3.3.13-linux-amd64
 
# 创建一个目录 {db-dir} 用来保存 etcd 的数据文件。
mkdir -p etcd-db/
cd etcd-db/
 
# 使用最新的 v3 API
export ETCDCTL_API=3
 
# 查看etcd版本
etcd -version
 
etcd Version: 3.3.13
Git SHA: 98d3084
Go Version: go1.10.8
Go OS/Arch: linux/amd64
# 启动etcd,在 {db-dir} 目录运行 etcd 启动 etcd 服务
etcd
 
2022-05-03 22:56:08.196843 I | etcdmain: etcd Version: 3.3.13
2022-05-03 22:56:08.196884 I | etcdmain: Git SHA: 98d3084
2022-05-03 22:56:08.196888 I | etcdmain: Go Version: go1.10.8
2022-05-03 22:56:08.196892 I | etcdmain: Go OS/Arch: linux/amd64
2022-05-03 22:56:08.196896 I | etcdmain: setting maximum number of CPUs to 1, to                                                                             tal number of available CPUs is 1
2022-05-03 22:56:08.196905 W | etcdmain: no data-dir provided, using default dat                                                                             a-dir ./default.etcd
2022-05-03 22:56:08.197222 I | embed: listening for peers on http://localhost:23                                                                             80
2022-05-03 22:56:08.197291 I | embed: listening for client requests on localhost                                                                             :2379
2022-05-03 22:56:08.201559 I | etcdserver: name = default
2022-05-03 22:56:08.201570 I | etcdserver: data dir = default.etcd
2022-05-03 22:56:08.201575 I | etcdserver: member dir = default.etcd/member
2022-05-03 22:56:08.201578 I | etcdserver: heartbeat = 100ms
2022-05-03 22:56:08.201581 I | etcdserver: election = 1000ms
2022-05-03 22:56:08.201584 I | etcdserver: snapshot count = 100000
2022-05-03 22:56:08.201591 I | etcdserver: advertise client URLs = http://localh                                                                             ost:2379
2022-05-03 22:56:08.201595 I | etcdserver: initial advertise peer URLs = http://                                                                             localhost:2380
2022-05-03 22:56:08.201601 I | etcdserver: initial cluster = default=http://loca                                                                             lhost:2380
2022-05-03 22:56:08.205173 I | etcdserver: starting member 8e9e05c52164694d in c                                                                             luster cdf818194e3a8c32
2022-05-03 22:56:08.205210 I | raft: 8e9e05c52164694d became follower at term 0
2022-05-03 22:56:08.205224 I | raft: newRaft 8e9e05c52164694d [peers: [], term:                                                                              0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2022-05-03 22:56:08.205228 I | raft: 8e9e05c52164694d became follower at term 1
2022-05-03 22:56:08.210992 W | auth: simple token is not cryptographically signe                                                                             d
2022-05-03 22:56:08.214150 I | etcdserver: starting server... [version: 3.3.13,                                                                              cluster version: to_be_decided]
2022-05-03 22:56:08.215983 I | etcdserver: 8e9e05c52164694d as single-node; fast                                                                             -forwarding 9 ticks (election ticks 10)
2022-05-03 22:56:08.216449 I | etcdserver/membership: added member 8e9e05c521646                                                                             94d [http://localhost:2380] to cluster cdf818194e3a8c32
2022-05-03 22:56:09.205424 I | raft: 8e9e05c52164694d is starting a new election                                                                              at term 1
2022-05-03 22:56:09.205458 I | raft: 8e9e05c52164694d became candidate at term 2
2022-05-03 22:56:09.205472 I | raft: 8e9e05c52164694d received MsgVoteResp from                                                                              8e9e05c52164694d at term 2
2022-05-03 22:56:09.205484 I | raft: 8e9e05c52164694d became leader at term 2
2022-05-03 22:56:09.205490 I | raft: raft.node: 8e9e05c52164694d elected leader                                                                              8e9e05c52164694d at term 2
2022-05-03 22:56:09.205918 I | etcdserver: setting up the initial cluster versio                                                                             n to 3.3
2022-05-03 22:56:09.205982 I | etcdserver: published {Name:default ClientURLs:[h                                                                             ttp://localhost:2379]} to cluster cdf818194e3a8c32
2022-05-03 22:56:09.206092 E | etcdmain: forgot to set Type=notify in systemd se                                                                             rvice file?
2022-05-03 22:56:09.206100 I | embed: ready to serve client requests
2022-05-03 22:56:09.206620 N | embed: serving insecure client requests on 127.0.                                                                             0.1:2379, this is strongly discouraged!
2022-05-03 22:56:09.207222 N | etcdserver/membership: set the initial cluster ve                                                                             rsion to 3.3
2022-05-03 22:56:09.207262 I | etcdserver/api: enabled capabilities for version                                                                              3.3
proto: no coders for int
proto: no encoder for ValueSize int [GetProperties]

 

标签:03,2022,22,05,部署,56,etcd
From: https://www.cnblogs.com/libruce/p/16657375.html

相关文章

  • Knative部署应用以及应用的更新、应用的分流(二)
    1.应用的更新1.1更新hello-example应用1.更新应用的环境变量可通过命令行的方式亦可以通过读取配置文件的方式,这里主要来看命令行的方式[root@kn-server-master01-13......
  • Docker 部署
    部署docker1.关闭防火墙systemctlstopfirewalldsystemctldisablefirewalld2.停用并禁用selinux查看:getenforce临时禁用:setenforce0查看配置文件:grep^SELI......
  • Docker容器:利用Kubernetes、Flannel、Cockpit和Atomic构建和部署 pdf
    高清扫描版下载链接:https://pan.baidu.com/s/1bGR-iSE5_jHNvP1QWHKs3g点击这里获取提取码Linux系统或云环境上运行Docker的实用指南!无论是在笔记本上还是在远程云上,Docke......
  • git提交到项目中自动部署
    git提交到项目中自动部署git提交到项目中自动部署2021-11-1016:30:03设置webhock地址webhock触发命令#!/bin/shcd/www/wwwrootoutput=`gitreset--ha......
  • docker部署 win10 DockerDesktop_V4.10.1_XiTongZhiJia
    ​ 下载程序包:DockerDesktop下载_DockerDesktop(桌面开发环境)官方正式版下载4.10.1-系统之家启动安装时,如果报错如下,则升级windows:DockerDesktoprequiresWind......
  • docker部署 win7 Docker Toolbox 19.03.1
    ​ 参考自:【docker】DockerToolbox19.03.1安裝教程_sunX_的博客-CSDN博客准备工作,这三个文件​编辑地址:回头提供 系统环境检查,执行LeoMoonCPU-V.exe,确认硬件支......
  • HBase集群部署与基础命令
    HBase集群部署安装hbase之前需要先搭建好hadoop集群和zookeeper集群。hadoop集群搭建可以参考:https://www.cnblogs.com/javammc/p/16545146.html下载安装包htt......
  • 使用 Django 集成 vue 到一个服务器上,还是 Django 和 vue 分开部署
    Django+Vue的项目,实际部署的时候,使用Django集成vue到一个服务器上,还是Django和vue分开部署?目前在架构选择,基本上定了Django+Vue但是实际部署的时候,就有两种......
  • spring cloud 多模块打包部署解决坑
    springcloud多模块打包部署解决坑 前置条件笔者使用IntellijIDEA进行SpringCloud项目创建和部署IntellijIDEA版本:IntelliJIDEA2019.1.3(UltimateEdition)......
  • uwsgi+Flask部署
    1.安装uwsgipip3installuwsgi2.Flask项目目录 flask_demo:项目目录。uwsgi:用来存放和uwsgi相关的配置文件和日志文件。venv:虚拟环境目录......