Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying etcd

  1. Set environment variables.
    1. Open the /etc/profile file.
      vim /etc/profile
    2. Press i to enter the insert mode and add the following content to the end of the file. By default, etcd V2 is used. Therefore, the API of etcd V3 is required.
      export ETCDCTL_API=3
      export ETCD_UNSUPPORTED_ARCH=arm64
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Make the environment variables take effect.
    source /etc/profile
  3. Start etcd.
    cd /usr/local/etcd/bin
    nohup ./etcd >./nohup.out 2>&1 & 

  4. Check for the etcd process.
    ps -ef | grep etcd

    The etcd process is displayed.

  5. Verify the inserted data.
    ./etcdctl put key "etcd"
    ./etcdctl get key

    For details about other verification operations, see Verifying etcd.