---
title: 验证etcd
description: "1. 配置环境变量。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengdbs/ecosystemEnable/Etcd/openmind_etcd3120_03_0008.html
sourcePath: /source/zh/kunpengdbs/ecosystemEnable/Etcd/openmind_etcd3120_03_0008.html
indexId: 1d795357c1ea939795fbbf02fe8e1d1bbe1165a87d2ba3b45c4940412160348173
---
# 验证etcd

1. 配置环境变量。

  a. 打开“/etc/profile”文件。
    1 vim /etc/profile

  b. 按“i”进入编辑模式，在文件末尾加入以下配置，因为etcd默认使用V2版本，这里需要V3版本的API。

```
export ETCDCTL_API=3
export ETCD_UNSUPPORTED_ARCH=arm64
```


  c. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
2. 使环境变量生效。
  1 source /etc/profile

3. 启动etcd。
  1 2 cd /usr/local/etcd/bin nohup ./etcd >./nohup.out 2>&1 &

4. 查看etcd进程。
  1 ps -ef | grep etcd

  可以看到etcd进程。

5. 验证插入数据。
  1 2 ./etcdctl put key "etcd" ./etcdctl get key

  其它验证操作请参考验证etcd。
