ETCD官网文档系列(三)

安装etcd可以通过下载预编译的二进制文件或从源码编译。对于二进制安装,从Release页面选择v3.5.0或更高版本,解压后将可执行文件添加到PATH。若选择源码编译,需确保有Go1.16+环境,下载源码,解压,进入目录并运行build.sh。编译完成后,将bin目录添加到PATH,并验证etcd版本。
摘要由CSDN通过智能技术生成

Install

安装预编译二进制文件

安装etcd最简单的方法是从预构建的二进制文件:

  1. Download the compressed archive file for your platform from Releases, choosing release v3.5.0 or later.
  2. Unpack the archive file. This results in a directory containing the binaries.
  3. Add the executable binaries to your path. For example, rename and/or move the binaries to a directory in your path (like /usr/local/bin), or add the directory created by the previous step to your path.
  4. From a shell, test that etcd is in your path:
etcd --version
etcd Version: 3.5.0
...

从源码编译

如果有安装Go 1.16+编译器,你可以从源码安装:

  1. 下载源码文件并解压https://github.com/etcd-io/etcd/archive/v3.5.0.zip;或者从仓库克隆

    # To build from main@HEAD, omit the -b v3.5.0 flag.
    git clone -b v3.5.0 https://github.com/etcd-io/etcd.git
    
  2. 切换目录

    cd etcd
    
  3. 编译

The binaries are under the bin directory

./build.sh
  1. Add the full path to the bin directory to your path, for example:
$ export PATH="$PATH:`pwd`/bin"
  1. Test that etcd is in your path:
$ etcd --version
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值