一、下载安装选择版本

https://github.com/coreos/etcd/releases

二、解压

三、首先开启etcd

1、进入在etcd解压的目录中
2、etcd.exe
没有error,并且显示ip端口即可

四、使用

D:\etcd-v3.3.2-darwin-amd64>etcdctl
NAME:
etcdctl - A simple command line client for etcd. WARNING:
Environment variable ETCDCTL_API is not set; defaults to etcdctl v2.
Set environment variable ETCDCTL_API= to use v3 API or ETCDCTL_API= to use v2 API. USAGE:
etcdctl [global options] command [command options] [arguments...] VERSION:
3.3. COMMANDS:
backup backup an etcd directory
cluster-health check the health of the etcd cluster
mk make a new key with a given value
mkdir make a new directory
rm remove a key or a directory
rmdir removes the key if it is an empty directory or a key-value pair
get retrieve the value of a key
ls retrieve a directory
set set the value of a key
setdir create a new directory or update an existing directory TTL
update update an existing key with a given value
updatedir update an existing directory
watch watch a key for changes
exec-watch watch a key for changes and exec an executable
member member add, remove and list subcommands
user user add, grant and revoke subcommands
role role add, grant and revoke subcommands
auth overall auth controls
help, h Shows a list of commands or help for one command GLOBAL OPTIONS:
--debug output cURL commands which can be used to reproduce the request
--no-sync don't synchronize cluster information before sending request
--output simple, -o simple output response in the given format (simple, `extended` or `json`) (default: "simple")
--discovery-srv value, -D value domain name to query for SRV records describing cluster endpoints
--insecure-discovery accept insecure SRV records describing cluster endpoints
--peers value, -C value DEPRECATED - "--endpoints" should be used instead
--endpoint value DEPRECATED - "--endpoints" should be used instead
--endpoints value a comma-delimited list of machine addresses in the cluster (default: "http://127.0.0.1:2379,http://127.0.0.1:4001")
--cert-file value identify HTTPS client using this SSL certificate file
--key-file value identify HTTPS client using this SSL key file
--ca-file value verify certificates of HTTPS-enabled servers using this CA bundle
--username value, -u value provide username[:password] and prompt if password is not supplied.
--timeout value connection timeout per request (default: 2s)
--total-timeout value timeout for the command execution (except watch) (default: 5s)
--help, -h show help
--version, -v print the version

使用如下:

D:\etcd-v3.3.2-darwin-amd64>etcdctl get hello world
world

其他详细讲解:

https://www.jianshu.com/p/d63265949e52

最新文章

  1. ASP.NET MVC使用Areas后怎样获取Area(区域)的名称
  2. 领域驱动(DD)目录
  3. Mongodb源代码阅读笔记:Journal机制
  4. subtable
  5. selenium如何分别启动IE、firefox、chrome浏览器
  6. JS 瀑布流布局
  7. MyEclipse常用设置笔记
  8. DIV布局之道三:DIV块的覆盖,DIV层遮盖其他DIV
  9. ajax调用webservice(二) 跨域。
  10. Content Providers的步骤,来自官网文档
  11. 最小二乘法拟合java实现源程序(转)
  12. JS宽高理解
  13. Ubuntu 16.04安装下HTK--亲测ok
  14. 小程序 lazy-load 不生效的问题
  15. Direct Shot Correspondence Matching
  16. CentOS7 安装FastDFS分布式文件系统
  17. Reported time is too far out of sync with master. Time difference of 52692ms > max allowed of 30000ms
  18. 一篇文章搞懂DOM
  19. pdo_mysql扩展以及测试
  20. favico.js笔记

热门文章

  1. Spring MVC生成XML
  2. posix正则表达式说明
  3. Unity3D学习笔记——游戏组件之Mesh(网格组件)
  4. 圆角头像----CSS3特效
  5. python3----strip lstrip rstrip
  6. iOS-毛玻璃、navigationBar滑动颜色渐变
  7. go语言发送邮件
  8. redis 底层数据结构 整数集合intset
  9. 定位frame中的元素
  10. std::condition_variable(2)复习