Axel

Aug 6, 2015


简介

Axel 通过打开多个 HTTP/FTP 连接来将一个文件进行分段下载,从而达到加速下载的目的。

支持断点续传。

对于下载大文件,该工具特别有用。

安装

Ubuntu:

sudo apt-get install axel

CentOS:

wget http://pkgs.repoforge.org/axel/axel-2.4-1.el6.rf.x86_64.rpm
rpm -ivh axel-2.4-1.el6.rf.x86_64.rpm

检测

在命令行输入:

axel

出现说明信息即为安装成功:

--max-speed=x		-s x	Specify maximum speed (bytes per second)
--num-connections=x	-n x	Specify maximum number of connections
--output=f		-o f	Specify local output file
--search[=x]		-S [x]	Search for mirrors and download from x servers
--header=x		-H x	Add header string
--user-agent=x		-U x	Set user agent
--no-proxy		-N	Just don't use any proxy server
--quiet			-q	Leave stdout alone
--verbose		-v	More status information
--alternate		-a	Alternate progress indicator
--help			-h	This information
--version		-V	Version information

使用

一般使用(url为下载文件地址):

axel url

限速使用(加上 -s 参数,如 -s 10240,即每秒下载的字节数,这里是 10 Kb):

axel -s 10240 url

限制连接数(加上 -n 参数,如 -n 5,即打开 5 个连接):

axel -n 5 url