Verifying etcd
- Start etcd.
- Foreground running:
cd /usr/local/etcd/bin ./etcd

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

- Foreground running:
- Verify the inserted data.
./etcdctl put key "etcd"

- Check for data.
./etcdctl get key

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

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

- 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

- Exit from the foreground.