Aria2c下载工具安装配置及命令

每次下载的时候,总是觉得带宽利用率不够。发现Aria2下载工具可以提高下载速度,记录安装配置过程。

官网https://aria2.github.io/

简介

aria2c - The ultra fast download utility
aria2 is a utility for downloading files. The supported protocols are HTTP(S), FTP,
SFTP, BitTorrent, and Metalink. aria2 can download a file from multiple
sources/protocols and tries to utilize your maximum download bandwidth. It supports
downloading a file from HTTP(S)/FTP /SFTP and BitTorrent at the same time, while
the data downloaded from HTTP(S)/FTP/SFTP is uploaded to the BitTorrent swarm.
Using Metalink chunk checksums, aria2 automatically validates chunks of data while
downloading a file.

deepin系统下安装

apt install aria2

常用命令

 -d, --dir=目录         用于存储已下载文件的目录。

                              可能的取值: /path/to/directory
                              默认: /home/ishare
                              标签: #basic, #file

-x, --max-connection-per-server=N   每个下载中对单个服务器的最大连接数。

                              可能的取值: 1-16
                              默认: 1
                              标签: #basic, #http, #ftp
-s, --split=N            使用 N 个连接下载文件。如 N 小于需要下载的 URI 数量,
                              到主机的连接数量受 --max-connection-per-server 选项限制。
                              参见 --min-split-size 选项。
                              标签: #basic, #http, #ftp
                              btrfs,xfs 或 NTFS(仅限 MinGW 环境构建),
                              如果您的系统中 posix_fallocate() 函数不可用,
                              标签: #basic, #file

-k, --min-split-size=SIZE   
                              aria2 does not split less than 2*SIZE byte range.
                              For example, let's consider downloading 20MiB
                              file. If SIZE is 10M, aria2 can split file into 2
                              using 2 sources(if --split >= 2, of course).
                              If SIZE is 15M, since 2*15M > 20MiB, aria2 does
                              not split file and download it using 1 source.
                              标签: #basic, #http, #ftp

使用实例

aria2c -s 5 -x 16 http://www.jetbrains.com.cn/download/idea/ideaIU-2016.3.1.tar.gz

你可能感兴趣的:(Aria2c下载工具安装配置及命令)