Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying etcd

  1. Start etcd.
    • Foreground running:
      cd /usr/local/etcd/bin
      ./etcd

    • Background running:
      cd /usr/local/etcd/bin
      nohup ./etcd >./nohup.out 2>&1 & 

  2. Verify the inserted data.
    ./etcdctl put key "etcd"

  3. Check for data.
    ./etcdctl get key

  4. Run the put command to modify the data.
    ./etcdctl put key "world"
    ./etcdctl get key

  5. Delete the data.
    ./etcdctl del key
    ./etcdctl get key

  6. Stop etcd.
    • Exit from the foreground.
      Ctrl+c
    • Exit from the background: Search for the etcd process ID and stop the process, or directly stop the etcd process.
      ps -ef | grep etcd
      kill -9 56556

      Or:

      pkill -9 etcd