码迷,mamicode.com
首页 > 其他好文 > 详细

etcd增删改查

时间:2019-12-20 01:11:18      阅读:96      评论:0      收藏:0      [点我收藏+]

标签:tag   为知笔记   http   border   mode   dct   yun   src   --   

技术图片

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

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

技术图片

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

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




etcd增删改查

标签:tag   为知笔记   http   border   mode   dct   yun   src   --   

原文地址:https://www.cnblogs.com/hualou/p/12071056.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!