我是靠谱客的博主 伶俐蚂蚁,这篇文章主要介绍ETCD官网文档系列(三)Install,现在分享给大家,希望可以做个参考。

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:
复制代码
1
2
3
4
etcd --version etcd Version: 3.5.0 ...

从源码编译

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

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

    复制代码
    1
    2
    3
    # 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. 切换目录

    复制代码
    1
    2
    cd etcd
  3. 编译

The binaries are under the bin directory

复制代码
1
2
./build.sh
  1. Add the full path to the bin directory to your path, for example:
复制代码
1
2
$ export PATH="$PATH:`pwd`/bin"
  1. Test that etcd is in your path:
复制代码
1
2
$ etcd --version

最后

以上就是伶俐蚂蚁最近收集整理的关于ETCD官网文档系列(三)Install的全部内容,更多相关ETCD官网文档系列(三)Install内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(61)

评论列表共有 0 条评论

立即
投稿
返回
顶部