我正在阅读 Aria2c 下载管理器 documentation有些参数对我来说似乎是多余的。例如:
-x
The maximum number of connections to one server for each download. Default: 1-j
Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5-s
Download a file using N connections. ... Default: 5
从我的视角来看,-x 和 -j/-s 设置是矛盾的。如果-x 为 1,-j 为 5,哪个优先?我需要使用这三个参数的组合来最大化一个文件下载?下载多个文件?
最佳答案
-s:下载每个文件使用多少个镜像,镜像要列在一行
-j:同时下载多少个文件(输入文件中的行)
-x:从每个镜像下载多少个流。
所以,如果它只是一个文件,它是这样的:
aria2 -d ./ -x 10 "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR209/ERR209558/ERR209558_1.fastq.gz"
如果您需要下载多个文件,请使用-i
来提供输入文件,然后像这样:
aria2 -d ./aria_dl/ -x 16 -j 16 -i ./aria_list_of_files.txt
这意味着您在每一行中只有一个链接,aria2
将为其下载的 16 个文件中的每一个使用 16 个流。如果您有多个镜像,请将每个文件的所有镜像放在一行中并添加 -s N
,其中 N 是最大镜像数。
关于linux - Aria2c并行下载参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55166245/