概述
axel是一个多线程的下载工具,类似迅雷,支持断点下载,支持HTTP, HTTPS, FTP and FTPS协议。
- 官方介绍
Axel tries to accelerate the download process by using multiple connections per file, and can also balance the load between different servers.
Axel tries to be as light as possible, so it might be useful on byte-critical systems.
Axel supports HTTP, HTTPS, FTP and FTPS protocols.
Thanks to the original developer of Axel, Wilmer van der Gaast, and everyone else who has contributed to it over the years.
虽然可以通过 epel 的源安装 axel ,但是比较老,功能和性能、bug 都比较多,所以建议源码安装。
epel源安装
yum install epel-release -y
yum install axel -y
源码安装
wget https://github.com/axel-download-accelerator/axel/releases/download/v2.17.9/axel-2.17.9.tar.bz2
tar -xjvf axel-2.17.9.tar.bz2
cd axel-2.17.9
yum groupinstall "Development tools" -y
yum install openssl-devel wget -y
./configure && make && make install
axel -n1000 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.1-linux-x86_64.tar.gz
使用帮助
其实看上去与 wget 和 curl 差不多,主要加上-n参数实现多线程下载,尤其从国外下载东西,速度飞起来。
# axel --help
Axel 2.17.9 (linux-gnu)
Usage: axel [options] url1 [url2] [url...]
--max-speed=x -s x Specify maximum speed (bytes per second)
--num-connections=x -n x Specify maximum number of connections
--max-redirect=x Specify maximum number of redirections
--output=f -o f Specify local output file
--search[=n] -S[n] Search for mirrors and download from n servers
--ipv4 -4 Use the IPv4 protocol
--ipv6 -6 Use the IPv6 protocol
--header=x -H x Add HTTP header string
--user-agent=x -U x Set user agent
--no-proxy -N Just don't use any proxy server
--insecure -k Don't verify the SSL certificate
--no-clobber -c Skip download if file already exists
--quiet -q Leave stdout alone
--verbose -v More status information
--alternate -a Alternate progress indicator
--help -h This information
--timeout=x -T x Set I/O and connection timeout
--version -V Version information
Visit https://github.com/axel-download-accelerator/axel/issues to report bugs
链接
https://github.com/axel-download-accelerator/axel
https://github.com/axel-download-accelerator/axel/releases