我要评分
获取效率
正确性
完整性
易理解

Verifying etcd

  1. Set environment variables.
    1. Open the /etc/profile file.
      1
      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.
    1
    source /etc/profile
    
  3. Start etcd.
    1
    2
    cd /usr/local/etcd/bin
    nohup ./etcd >./nohup.out 2>&1 & 
    

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

    The etcd process is displayed.

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

    For details about other verification operations, see Verifying etcd.