概要
下载安装
代码语言:javascript复制[root@docker etcd]# curl -L https://github.com/coreos/etcd/releases/download/v2.2.4/etcd-v2.2.4-linux-amd64.tar.gz -o etcd-v2.2.4-linux-amd64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 606 0 606 0 0 328 0 --:--:-- 0:00:01 --:--:-- 328
0 0 0 0 0 0 0 0 --:--:-- 0:02:08 --:--:-- 0curl: (7) Failed connect to github-cloud.s3.amazonaws.com:443; Connection timed out
[root@h104 ~]# wget https://github.com/coreos/etcd/releases/download/v2.2.4/etcd-v2.2.4-linux-amd64.tar.gz
--2016-02-01 22:34:11-- https://github.com/coreos/etcd/releases/download/v2.2.4/etcd-v2.2.4-linux-amd64.tar.gz
Resolving github.com (github.com)... 192.30.252.129
Connecting to github.com (github.com)|192.30.252.129|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/11225014/559a703a-ba00-11e5-8b3c-1aeb0a1fad55.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20160201/us-east-1/s3/aws4_request&X-Amz-Date=20160201T143415Z&X-Amz-Expires=300&X-Amz-Signature=addebe637a795ab47739422d9963a2694c006fb29e402b288f14a5ac3690a5ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=etcd-v2.2.4-linux-amd64.tar.gz&response-content-type=application/octet-stream [following]
--2016-02-01 22:34:16-- https://github-cloud.s3.amazonaws.com/releases/11225014/559a703a-ba00-11e5-8b3c-1aeb0a1fad55.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ/20160201/us-east-1/s3/aws4_request&X-Amz-Date=20160201T143415Z&X-Amz-Expires=300&X-Amz-Signature=addebe637a795ab47739422d9963a2694c006fb29e402b288f14a5ac3690a5ca&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment; filename=etcd-v2.2.4-linux-amd64.tar.gz&response-content-type=application/octet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.19.152
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.19.152|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7567734 (7.2M) [application/octet-stream]
Saving to: ‘etcd-v2.2.4-linux-amd64.tar.gz’
0% [ ] 16,959 68.5B/s in 4m 7s
2016-02-01 22:39:24 (68.5 B/s) - Read error at byte 16959/7567734 (Connection reset by peer). [root@h104 ~]#
[root@docker etcd]# ls
etcd-v2.2.4-linux-amd64.tar.gz
[root@docker etcd]# tar -zxvf etcd-v2.2.4-linux-amd64.tar.gz
etcd-v2.2.4-linux-amd64/
etcd-v2.2.4-linux-amd64/Documentation/
etcd-v2.2.4-linux-amd64/Documentation/runtime-configuration.md
etcd-v2.2.4-linux-amd64/Documentation/admin_guide.md
etcd-v2.2.4-linux-amd64/Documentation/tuning.md
etcd-v2.2.4-linux-amd64/Documentation/glossary.md
etcd-v2.2.4-linux-amd64/Documentation/rfc/
etcd-v2.2.4-linux-amd64/Documentation/rfc/v3api.md
etcd-v2.2.4-linux-amd64/Documentation/rfc/v3api.proto
etcd-v2.2.4-linux-amd64/Documentation/discovery_protocol.md
etcd-v2.2.4-linux-amd64/Documentation/errorcode.md
etcd-v2.2.4-linux-amd64/Documentation/metrics.md
etcd-v2.2.4-linux-amd64/Documentation/security.md
etcd-v2.2.4-linux-amd64/Documentation/configuration.md
etcd-v2.2.4-linux-amd64/Documentation/docker_guide.md
etcd-v2.2.4-linux-amd64/Documentation/dev/
etcd-v2.2.4-linux-amd64/Documentation/dev/release.md
etcd-v2.2.4-linux-amd64/Documentation/auth_api.md
etcd-v2.2.4-linux-amd64/Documentation/backward_compatibility.md
etcd-v2.2.4-linux-amd64/Documentation/platforms/
etcd-v2.2.4-linux-amd64/Documentation/platforms/freebsd.md
etcd-v2.2.4-linux-amd64/Documentation/libraries-and-tools.md
etcd-v2.2.4-linux-amd64/Documentation/implementation-faq.md
etcd-v2.2.4-linux-amd64/Documentation/reporting_bugs.md
etcd-v2.2.4-linux-amd64/Documentation/upgrade_2_2.md
etcd-v2.2.4-linux-amd64/Documentation/internal-protocol-versioning.md
etcd-v2.2.4-linux-amd64/Documentation/upgrade_2_1.md
etcd-v2.2.4-linux-amd64/Documentation/faq.md
etcd-v2.2.4-linux-amd64/Documentation/runtime-reconf-design.md
etcd-v2.2.4-linux-amd64/Documentation/clustering.md
etcd-v2.2.4-linux-amd64/Documentation/proxy.md
etcd-v2.2.4-linux-amd64/Documentation/branch_management.md
etcd-v2.2.4-linux-amd64/Documentation/other_apis.md
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/etcd-2-2-0-rc-memory-benchmarks.md
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/etcd-3-demo-benchmarks.md
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/etcd-2-1-0-alpha-benchmarks.md
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/README.md
etcd-v2.2.4-linux-amd64/Documentation/benchmarks/etcd-2-2-0-rc-benchmarks.md
etcd-v2.2.4-linux-amd64/Documentation/api.md
etcd-v2.2.4-linux-amd64/Documentation/authentication.md
etcd-v2.2.4-linux-amd64/Documentation/04_to_2_snapshot_migration.md
etcd-v2.2.4-linux-amd64/Documentation/production-ready.md
etcd-v2.2.4-linux-amd64/README-etcdctl.md
etcd-v2.2.4-linux-amd64/etcdctl
etcd-v2.2.4-linux-amd64/etcd
etcd-v2.2.4-linux-amd64/README.md
[root@docker etcd]# ll
total 7392
drwxrwxr-x 3 cc cc 91 Jan 14 06:13 etcd-v2.2.4-linux-amd64
-rw-r--r-- 1 root root 7567734 Feb 1 22:36 etcd-v2.2.4-linux-amd64.tar.gz
[root@docker etcd]# cd etcd-v2.2.4-linux-amd64/
[root@docker etcd-v2.2.4-linux-amd64]# ls
Documentation etcd etcdctl README-etcdctl.md README.md
[root@docker etcd-v2.2.4-linux-amd64]# ll
total 28000
drwxrwxr-x 6 cc cc 4096 Jan 14 06:13 Documentation
-rwxr-xr-x 1 cc cc 15145664 Jan 14 06:13 etcd
-rwxr-xr-x 1 cc cc 13502144 Jan 14 06:13 etcdctl
-rw-rw-r-- 1 cc cc 5613 Jan 14 06:13 README-etcdctl.md
-rw-rw-r-- 1 cc cc 4684 Jan 14 06:13 README.md
[root@docker etcd-v2.2.4-linux-amd64]#
Tip: 上面的报错是由于地址被重定向了,到了一个被墙的服务器上,于是翻墙,改为手动下载,放到了目录底下