命令行多线程断点续传下载工具-axel参数介绍:
deepfuture@server-deepfuture1:~$ 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
Report bugs to submit@bugs.debian.org (using reportbug)
deepfuture@server-deepfuture1:~$
主要参数:
n:线程数
-o:指定本地输出文件
操作如下:
deepfuture@server-deepfuture1:~$ sudo apt-get install axel
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列【新】软件包将被安装:
axel
共升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 3 个软件未被升级。
需要下载 50.1kB 的软件包。
解压缩后会消耗掉 217kB 的额外空间。
获取:1 http://cn.archive.ubuntu.com jaunty/universe axel 2.3-1 [50.1kB]
下载 50.1kB,耗时 22s (2190B/s)
选中了曾被取消选择的软件包 axel。
(正在读取数据库 ... 系统当前总共安装有 26280 个文件和目录。)
正在解压缩 axel (从 .../archives/axel_2.3-1_amd64.deb) ...
正在处理用于 man-db 的触发器...
正在设置 axel (2.3-1) ...
deepfuture@server-deepfuture1:~$ mkdir downfiles
deepfuture@server-deepfuture1:~$ ls
downfiles
deepfuture@server-deepfuture1:~$ cd downfiles
deepfuture@server-deepfuture1:~/downfiles$ axel -n 10 -o /home/deepfuture/downfiles http://labs.xiaonei.com/apache-mirror/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
Initializing download: http://labs.xiaonei.com/apache-mirror/hadoop/core/hadoop-0.20.0/hadoop-0.20.0.tar.gz
File size: 42813980 bytes
Opening output file /home/deepfuture/downfiles/hadoop-0.20.0.tar.gz
Starting download
[ 0%] .......... .......... .......... .......... .......... [ 109.9KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 146.9KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 166.8KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 179.0KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 167.9KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 142.7KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 155.7KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 167.0KB/s]
[ 0%] .......... .......... .......... .......... .......... [ 182.7KB/s]
[ 1%] .......... .......... .......... .......... .......... [ 192.7KB/s]
[ 1%] .......... .......... .......... .......... .......... [ 198.8KB/s]