↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

etcd 3.7

Quickstart

Official etcd 3.7 guides for developers, operators, upgrades, APIs, and internals.

Follow these instructions to locally install, run, and test a single-member cluster of etcd:

  1. Install etcd from pre-built binaries or from source. For details, see Install .

    Warning

    Important: Ensure that you perform the last step of the installation instructions to verify that etcd is in your path.

  2. Launch etcd:

    $ etcd
    {"level":"info","ts":"2021-09-17T09:19:32.783-0400","caller":"etcdmain/etcd.go:72","msg":... }
    ⋮
    
    Note

    Note: The output produced by etcd are logs — info-level logs can be ignored.

  3. From another terminal, use etcdctl to set a key:

    $ etcdctl put greeting "Hello, etcd"
    OK
    
  4. From the same terminal, retrieve the key:

    $ etcdctl get greeting
    greeting
    Hello, etcd
    

What’s next?

Learn about more ways to configure and use etcd from the following pages:

Source and license

Documentation imported from pig.center · Upstream documentation

Version
3.7
License
CC-BY-4.0
Source revision
cd1a9d68fc9418f02dbf478ffac90f7891fdb53c8a4ac77c2d8284c7b12b6c3d
Original Markdown