每次下載的時(shí)候,總是覺得帶寬利用率不夠。發(fā)現(xiàn)Aria2下載工具可以提高下載速度,記錄安裝配置過程。
官網(wǎng)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系統(tǒng)下安裝
apt install aria2
常用命令
-d, --dir=目錄 用于存儲(chǔ)已下載文件的目錄。
可能的取值: /path/to/directory
默認(rèn): /home/ishare
標(biāo)簽: #basic, #file
-x, --max-connection-per-server=N 每個(gè)下載中對(duì)單個(gè)服務(wù)器的最大連接數(shù)。
可能的取值: 1-16
默認(rèn): 1
標(biāo)簽: #basic, #http, #ftp
-s, --split=N 使用 N 個(gè)連接下載文件。如 N 小于需要下載的 URI 數(shù)量,
到主機(jī)的連接數(shù)量受 --max-connection-per-server 選項(xiàng)限制。
參見 --min-split-size 選項(xiàng)。
標(biāo)簽: #basic, #http, #ftp
btrfs,xfs 或 NTFS(僅限 MinGW 環(huán)境構(gòu)建),
如果您的系統(tǒng)中 posix_fallocate() 函數(shù)不可用,
標(biāo)簽: #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.
標(biāo)簽: #basic, #http, #ftp
使用實(shí)例
aria2c -s 5 -x 16 http://www.jetbrains.com.cn/download/idea/ideaIU-2016.3.1.tar.gz