How do i install a single instance etcd?



  • Github releases: https://github.com/etcd-io/etcd/releases

    Download the version you require from GitHub.

    Untar it into the directory location you want.

    $ cd /home/<user>
    $ tar xvf ~/Downloads/etcd-v3.3.10-linux-amd64.tar.gz
    $ ls etcd-v3.3.10-linux-amd64
    default.etcd  Documentation  etcd  etcdctl  README-etcdctl.md  README.md  READMEv2-etcdctl.md
    

    Run the etcd daemon.

    $ cd etcd-v3.3.10-linux-amd64
    $ ./etcd
    

    From another terminal. Check the member list.

    $ cd etcd-v3.3.10-linux-amd64
    $ ./etcdctl member list                                             
    8e9e05c52164694d, started, default, http://localhost:2380, http://localhost:2379
    

    Table format list.

    $ ./etcdctl --write-out=table --endpoints=localhost:2379 member list
    +------------------+---------+---------+-----------------------+-----------------------+
    |        ID        | STATUS  |  NAME   |      PEER ADDRS       |     CLIENT ADDRS      |
    +------------------+---------+---------+-----------------------+-----------------------+
    | 8e9e05c52164694d | started | default | http://localhost:2380 | http://localhost:2379 |
    +------------------+---------+---------+-----------------------+-----------------------+
    

Log in to reply
 

© Lightnetics 2024