etcd增删改查

etcd增删改查

![image-20191209191301618](C:\Users\AneroKissinger\AppData\Roaming\Typora\typora-user-images\image-20191209191301618.png

:~# etcdctl put /user/101/name xiahualou
OK
:~# etcdctl get /user/101
:~# etcdctl get /user/101/name
/user/101/name
xiahualou
:~# etcdctl get /user/101 --prefix //获取所有以/user/101为前缀的
/user/101/name
xiahualou
:~# etcdctl del /user/101 --prefix //删除所有以/user/101为前缀的
1

etcd增删改查

![image-20191209191301618](C:\Users\AneroKissinger\AppData\Roaming\Typora\typora-user-images\image-20191209191301618.png

:~# etcdctl put /user/101/name xiahualou
OK
:~# etcdctl get /user/101
:~# etcdctl get /user/101/name
/user/101/name
xiahualou
:~# etcdctl get /user/101 --prefix //获取所有以/user/101为前缀的
/user/101/name
xiahualou
:~# etcdctl del /user/101 --prefix //删除所有以/user/101为前缀的
1




相关推荐