axel插件是基于yum下的一个多线程下载。
下载
wget http://www.ha97.com/code/axel-2.4.tar.gzwget https://files.cnblogs.com/files/xiaochina/axel-2.4.tar.gz
安装
# 请使用root用户编译安装sutar zxvf axel-2.4.tar.gzcd axel-2.4./configuremake -smake install -s
参数说明
axel -h
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 //连接数
—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案例
axel -a -n 10 "http://archive.apache.org/dist/hive/hive-2.3.4/apache-hive-2.3.4-bin.tar.gz"axel -n 50 -o apache-hive-2.3.4-bin.tar.gz "http://archive.apache.org/dist/hive/hive-2.3.4/apache-hive-2.3.4-bin.tar.gz"# 限速使用:-s 10240,即每秒下载的字节数,这里是 10 Kb;# 限制连接数:-n 10,即打开10个连接# 输出文件名:-o xxx# 进度条(交替显示):-a
