简体   繁体   English

Aria2c 并行下载参数

[英]Aria2c parallel download parameters

I am reading the Aria2c download manager documentation and some parameters seem redundant to me.我正在阅读 Aria2c 下载管理器文档,有些参数对我来说似乎是多余的。 For example:例如:

-x -X
The maximum number of connections to one server for each download.每次下载到一台服务器的最大连接数。 Default: 1默认值:1

-j -j
Set the maximum number of parallel downloads for every queue item.为每个队列项设置最大并行下载数。 See also the --split option.另请参阅 --split 选项。 Default: 5默认值:5

-s -s
Download a file using N connections.使用 N 个连接下载文件。 ... Default: 5 ... 默认值:5

From my pov, -x and -j/-s settings are contradicting.从我的观点来看,-x 和 -j/-s 设置是矛盾的。 If -x is 1 and -j is 5, which takes priority?如果 -x 是 1 而 -j 是 5,哪个优先? What is the combination of these three parameters I need to use to maximize one file download?为了最大化一个文件下载,我需要使用这三个参数的组合是什么? download of multiple files?下载多个文件?

-s: how many mirrors to use to download each file, mirrors should be listed in one line -s:下载每个文件使用多少个镜像,镜像应该在一行中列出
-j: how many files (lines in the input file) to download simultaneously -j:同时下载多少个文件(输入文件中的行)
-x: how many streams to use for downloading from each mirror. -x:用于从每个镜像下载的流数。

So, if it is just one file, it goes like this:所以,如果它只是一个文件,它会是这样的:

aria2 -d ./ -x 10 "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR209/ERR209558/ERR209558_1.fastq.gz"

If you need to download a number of files, use -i to feed the input file, then go like this:如果您需要下载多个文件,请使用-i来提供输入文件,然后像这样:

aria2 -d ./aria_dl/ -x 16 -j 16 -i ./aria_list_of_files.txt

That implies that you have only one link in each line, and aria2 will use 16 streams for each of 16 files it is downloading.这意味着您在每一行中只有一个链接,而aria2将为它下载的 16 个文件中的每一个使用 16 个流。 If you have multiple mirrors, put all mirrors for each file in one line and add -s N , where N is the maximum number of mirrors.如果您有多个镜像,请将每个文件的所有镜像放在一行中并添加-s N ,其中 N 是镜像的最大数量。

I found the best way to download concurrently via aria2我找到了通过 aria2 同时下载的最佳方式

`aria2c -c -s 16 -x 16 -k 1M -j 1 -i dl.txt`


-c, --continue [true|false]
-s, --split=<N>
-x, --max-connection-per-server=<NUM>
-k, --min-split-size=<SIZE>
-j, --max-concurrent-downloads=<N>
-i, --input-file=<FILE>

NOTE: Downloads the URIs listed in FILE.注意:下载 FILE 中列出的 URI。 You can specify multiple sources for a single entity by putting multiple URIs on a single line separated by the TAB and CR (Enter) character.您可以通过将多个 URI 放在由TABCR (回车)字符分隔的单行上来为单个实体指定多个源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM