Linux下經常用的下載軟件有wget,wget是單線程下載,斷點不能續傳,Axel工具是linux下的http/ftp中強大下載工具,支持多線程下載和斷點續下。
這裡介紹Alex的安裝。和簡單使用。
常用的選項:
[root@station106 ~]# 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(指定HTTP 頭字串)
--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 --alternate -a Alternate progress indicator(用不刷屏的下載進度條)
--help -h This information 查看幫助信息
--version -V Version information查看版本信息。
wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.x86_64.rpm下載
安裝rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm
使用案列
axel -n 3 ftp://172.16.0.1/pub/Sources/6.x86_64/nginx/nginx-release-CentOS-6-0.el6.ngx.noarch.rpm
Linux用戶使用Axel加速下載 http://www.linuxidc.com/Linux/2011-07/37994.htm