码迷,mamicode.com
首页 > 编程语言 > 详细

Linux下axel多线程下载

时间:2018-08-24 02:03:00      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:arch   alternate   size   .gz   get   文件   oca   span   orm   

axel插件是基于yum下的一个多线程下载

01、下载

wget http://www.ha97.com/code/axel-2.4.tar.gz

wget https://files.cnblogs.com/files/xiaochina/axel-2.4.tar.gz

02、编译安装

tar zxvf axel-2.4.tar.gz
cd axel-2.4
./configure
make -s
make install -s

03、参数

[root@mvp ~]# 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

04、实践

axel -a -n 10 -s url

参数如下:
一般使用:axel url(下载文件地址);
限速使用:-s 10240,即每秒下载的字节数,这里是 10 Kb;
限制连接数:-n 10,即打开10个连接

axel -a -n 10 http://xxx.com/xxx.iso

Linux下axel多线程下载

标签:arch   alternate   size   .gz   get   文件   oca   span   orm   

原文地址:https://www.cnblogs.com/xiaochina/p/8516875.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!