首先看一段英文的背景介绍
http://vault.centos.org/notonvault.html
In order to conserve the limited bandwidth available .iso images are not downloadable from this Vault Machine.
The Following external Vault mirrors (not monitored by the CentOS Infra team !) provide direct downloads for all content, including isos:
USA:
http://archive.kernel.org/centos-vault/
rsync://archive.kernel.org::centos-vault/
Europe:
http://mirror.nsc.liu.se/centos-store/
rsync://mirror.nsc.liu.se::centos-store/
以其中一个版本为例
镜像下载地址
http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/
镜像文件名称:
CentOS-7-x86_64-DVD-1708.iso
下载连接:
http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
使用wget下载工具
wget命令
-c, --continue 断点续传下载文件
-b, --background 启动后转入后台
测试下载链接
wget --spider URL
示例
$ wget --spider http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
开启 Spider 模式。检查是否存在远程文件。
--2020-07-29 21:08:06-- http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
正在解析主机 mirror.nsc.liu.se (mirror.nsc.liu.se)... 2001:6b0:17:2::1:92, 130.236.101.92
正在连接 mirror.nsc.liu.se (mirror.nsc.liu.se)|2001:6b0:17:2::1:92|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:4521459712 (4.2G) [application/octet-stream]
存在远程文件。
开始下载
wget -bc http://mirror.nsc.liu.se/centos-store/7.4.1708/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
实时查看下载进度
tail -f wget-log
如何获取wget参数的url下载地址?
如果使用的是火狐浏览器,在浏览器下载按钮处点击 Copy Download Link即可获取url地址。