Aria2c下載工具安裝配置及命令

每次下載的時(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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容