Follow these instructions to locally install, run, and test a single-member cluster of etcd:
Install etcd from pre-built binaries or from source. For details, see Install.
etcd
is in your path.Launch etcd
:
$ etcd --logger=zap
{"level":"info","ts":"2021-09-20T08:19:31.340-0400","caller":"etcdmain/etcd.go:110","msg":... }
⋮
etcd
are
logs — info-level logs can
be ignored.From another terminal, use etcdctl
to set a key:
$ etcdctl put greeting "Hello, etcd"
OK
From the same terminal, retrieve the key:
$ etcdctl get greeting
greeting
Hello, etcd
Learn about more ways to configure and use etcd from the following pages:
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.