下载地址:
服务端:http://download.csdn.net/download/wuxun1997/9841277
客户端:http://download.csdn.net/download/wuxun1997/10120393
上面俩压缩包都是直接解压即可,客户端需修改server.js文件:
var etcdHost = process.env.ETCD_HOST || '127.0.0.1';
var etcdPort = process.env.ETCD_PORT || 2379;
先启动服务端,后启动客户端。
到解压目录点击etcd.exe,服务端启动日志:
2017-11-15 14:13:05.718967 I | etcdmain: etcd Version: 3.0.17
2017-11-15 14:13:05.895436 I | etcdmain: Git SHA: cc198e2
2017-11-15 14:13:05.899451 I | etcdmain: Go Version: go1.6.4
2017-11-15 14:13:05.899451 I | etcdmain: Go OS/Arch: windows/amd64
2017-11-15 14:13:05.899451 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
2017-11-15 14:13:05.900456 W | etcdmain: no data-dir provided, using default data-dir ./default.etcd
2017-11-15 14:13:05.917495 I | etcdmain: listening for peers on http://localhost:2380
2017-11-15 14:13:05.922508 I | etcdmain: listening for client requests on localhost:2379
2017-11-15 14:13:05.930530 I | etcdserver: name = default
2017-11-15 14:13:05.930530 I | etcdserver: data dir = default.etcd
2017-11-15 14:13:05.931532 I | etcdserver: member dir = default.etcd/member
2017-11-15 14:13:05.931532 I | etcdserver: heartbeat = 100ms
2017-11-15 14:13:05.931532 I | etcdserver: election = 1000ms
2017-11-15 14:13:05.931532 I | etcdserver: snapshot count = 10000
2017-11-15 14:13:05.931532 I | etcdserver: advertise client URLs = http://localhost:2379
2017-11-15 14:13:05.931532 I | etcdserver: initial advertise peer URLs = http://localhost:2380
2017-11-15 14:13:05.931532 I | etcdserver: initial cluster = default=http://localhost:2380
2017-11-15 14:13:05.964623 I | etcdserver: starting member 8e9e05c52164694d in cluster cdf818194e3a8c32
2017-11-15 14:13:05.964623 I | raft: 8e9e05c52164694d became follower at term 0
2017-11-15 14:13:05.965623 I | raft: newRaft 8e9e05c52164694d [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
2017-11-15 14:13:05.965623 I | raft: 8e9e05c52164694d became follower at term 1
2017-11-15 14:13:05.982668 I | etcdserver: starting server... [version: 3.0.17, cluster version: to_be_decided]
2017-11-15 14:13:05.982668 E | etcdserver: cannot monitor file descriptor usage (cannot get FDUsage on windows)
2017-11-15 14:13:05.986679 I | membership: added member 8e9e05c52164694d [http://localhost:2380] to cluster cdf818194e3a8c32
2017-11-15 14:13:06.166906 I | raft: 8e9e05c52164694d is starting a new election at term 1
2017-11-15 14:13:06.166906 I | raft: 8e9e05c52164694d became candidate at term 2
2017-11-15 14:13:06.167586 I | raft: 8e9e05c52164694d received vote from 8e9e05c52164694d at term 2
2017-11-15 14:13:06.168650 I | raft: 8e9e05c52164694d became leader at term 2
2017-11-15 14:13:06.168650 I | raft: raft.node: 8e9e05c52164694d elected leader 8e9e05c52164694d at term 2
2017-11-15 14:13:06.172596 I | etcdserver: setting up the initial cluster version to 3.0
2017-11-15 14:13:06.181621 N | membership: set the initial cluster version to 3.0
2017-11-15 14:13:06.182626 I | api: enabled capabilities for version 3.0
2017-11-15 14:13:06.183626 I | etcdserver: published {Name:default ClientURLs:[http://localhost:2379]} to cluster cdf818194e3a8c32
2017-11-15 14:13:06.187644 I | etcdmain: ready to serve client requests
2017-11-15 14:13:06.192651 N | etcdmain: serving insecure client requests on localhost:2379, this is strongly discouraged!
客户端启动前需安装nodejs,到官网https://nodejs.org/en/下载最新版本即可。安装后用命令行打开客户端安装目录执行server.js命令
D:\Dev\etcd-browser-master>node server.js
proxy /api requests to etcd on 127.0.0.1:
etc-browser listening on port
这时可以在浏览器地址栏输入http://127.0.0.1:8000/打开etcd界面,直接在界面操作即可执行目录和属性的增删查改。