概述
Axel tries to accelerate the download process by using multiple connections per file, and can also balance the load between different servers.
Axel supports HTTP, HTTPS, FTP and FTPS protocols.
CentOS 的 yum 中本来是不包含 axel 这个软件包的,如果要使用需要先添加 epel 拓展
yum -y install epel-release yum -y install axel
二、语法
选项
--max-speed=x , -s x 最高速度x--num-connections=x , -n x 连接数x--output=f , -o f 下载为本地文件f--search[=x] , -S [x] 搜索镜像--header=x , -H x 添加头文件字符串x(指定 HTTP header)--user-agent=x , -U x 设置用户代理(指定 HTTP user agent)--no-proxy , -N 不使用代理服务器--quiet , -q 静默模式--verbose ,-v 更多状态信息--alternate , -a Alternate progress indicator--help ,-h 帮助--version ,-V 版本信息
三、实例
在我们获得了下载地址之后执行:
axel -n 10 -o /axel/ -a https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/45.2.0/linux-x86_64/zh-CN/thunderbird-45.2.0.tar.bz2
如果下载过程中下载中断可以再执行下载命令即可恢复上次的下载进度。
觉得有用的朋友多帮忙转发哦!后面会分享更多devops和DBA方面的内容,感兴趣的朋友可以关注下~

