源码地址:https://github.com/etcd-io/etcd 1. 入口
scripts/build.sh#!/usr/bin/env bash# This scripts build the etcd binaries
# To build the tools, run build_tools.shsource ./scripts/test_lib.sh
source ./scripts/build_lib.sh# only build when calle…
1.简单使用
1.1 增加
set
指定某个键的值。例如:
$ etcdctl set /testdir/testkey "Hello world"
Hello world
复制代码支持的选项包括:
--ttl 0 该键值的超时时间(单位为秒),不配置(默认为0)则永不超时
--swap-with-value value 若该键现…