aria2 通常命令说明

Usage: aria2c [OPTIONS] [URI | MAGNET | TORRENT_FILE | METALINK_FILE]...
Printing options tagged with '#basic'.
See 'aria2c -h#help' to know all available tags.
Options:
 -v, --version                Print the version number and exit.


                              Tags: #basic


 -h, --help[=TAG|KEYWORD]     Print usage and exit.
                              The help messages are classified with tags. A tag
                              starts with "#". For example, type "--help=#http"
                              to get the usage for the options tagged with
                              "#http". If non-tag word is given, print the usage
                              for the options whose name includes that word.


                              Possible Values: #basic, #advanced, #http, #https, #ftp, #metalink, #bittorrent, #cookie, #hook, #file, #rpc, #checksum, #experimental, #deprecated, #help, #all
                              Default: #basic
                              Tags: #basic, #help


 -l, --log=LOG                The file name of the log file. If '-' is
                              specified, log is written to stdout.


                              Possible Values: /path/to/file, -
                              Tags: #basic


 -d, --dir=DIR                The directory to store the downloaded file.


                              Possible Values: /path/to/directory
                              Default: D:\aria2\aria2
                              Tags: #basic, #file


 -o, --out=FILE               The file name of the downloaded file. When 
                              the -Z option is used, this option will be 
                              ignored.


                              Possible Values: /path/to/file
                              Tags: #basic, #http, #ftp, #file


 -s, --split=N                Download a file using N connections. If more
                              than N URIs are given, first N URIs are used and
                              remaining URLs are used for backup. If less than
                              N URIs are given, those URLs are used more than
                              once so that N connections total are made
                              simultaneously. The number of connections to the
                              same host is restricted by the 
                              --max-connection-per-server option. See also the
                              --min-split-size option.


                              Possible Values: 1-*
                              Default: 5
                              Tags: #basic, #http, #ftp


 --file-allocation=METHOD     Specify file allocation method.
                              'none' doesn't pre-allocate file space. 'prealloc'
                              pre-allocates file space before download begins.
                              This may take some time depending on the size of
                              the file.
                              If you are using newer file systems such as ext4
                              (with extents support), btrfs, xfs or NTFS
                              (MinGW build only), 'falloc' is your best
                              choice. It allocates large(few GiB) files
                              almost instantly. Don't use 'falloc' with legacy
                              file systems such as ext3 and FAT32 because it
                              takes almost same time as 'prealloc' and it
                              blocks aria2 entirely until allocation finishes.
                              'falloc' may not be available if your system
                              doesn't have posix_fallocate() function.
                              'trunc' uses ftruncate() system call or
                              platform-specific counterpart to truncate a file
                              to a specified length.


                              Possible Values: none, prealloc, trunc, falloc
                              Default: prealloc
                              Tags: #basic, #file


 -V, --check-integrity[=true|false] Check file integrity by validating piece
                              hashes or a hash of entire file. This option has
                              effect only in BitTorrent, Metalink downloads
                              with checksums or HTTP(S)/FTP downloads with
                              --checksum option. If piece hashes are provided,
                              this option can detect damaged portions of a file
                              and re-download them. If a hash of entire file is
                              provided, hash check is only done when file has
                              been already download. This is determined by file
                              length. If hash check fails, file is
                              re-downloaded from scratch. If both piece hashes
                              and a hash of entire file are provided, only
                              piece hashes are used.


                              Possible Values: true, false
                              Default: false
                              Tags: #basic, #metalink, #bittorrent, #file, #checksum


 -c, --continue[=true|false]  Continue downloading a partially downloaded
                              file. Use this option to resume a download
                              started by a web browser or another program
                              which downloads files sequentially from the
                              beginning. Currently this option is only
                              applicable to http(s)/ftp downloads.


                              Possible Values: true, false
                              Default: false
                              Tags: #basic, #http, #ftp


 -i, --input-file=FILE        Downloads URIs found in FILE. You can specify
                              multiple URIs for a single entity: separate
                              URIs on a single line using the TAB character.
                              Reads input from stdin when '-' is specified.
                              Additionally, options can be specified after each
                              line of URI. This optional line must start with
                              one or more white spaces and have one option per
                              single line. See INPUT FILE section of man page
                              for details. See also --deferred-input option.


                              Possible Values: /path/to/file, -
                              Tags: #basic


 -j, --max-concurrent-downloads=N Set maximum number of parallel downloads for
                              every static (HTTP/FTP) URL, torrent and metalink.
                              See also --split option.


                              Possible Values: 1-*
                              Default: 5
                              Tags: #basic


 -Z, --force-sequential[=true|false] Fetch URIs in the command-line sequentially
                              and download each URI in a separate session, like
                              the usual command-line download utilities.


                              Possible Values: true, false
                              Default: false
                              Tags: #basic


 -x, --max-connection-per-server=NUM The maximum number of connections to one
                              server for each download.


                              Possible Values: 1-16
                              Default: 1
                              Tags: #basic, #http, #ftp


 -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
                              range [0-10MiB) and [10MiB-20MiB) and download it
                              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.
                              You can append K or M(1K = 1024, 1M = 1024K).


                              Possible Values: 1048576-1073741824
                              Default: 20M
                              Tags: #basic, #http, #ftp


 --ftp-user=USER              Set FTP user. This affects all URLs.


                              Tags: #basic, #ftp


 --ftp-passwd=PASSWD          Set FTP password. This affects all URLs.


                              Tags: #basic, #ftp


 --http-user=USER             Set HTTP user. This affects all URLs.


                              Tags: #basic, #http


 --http-passwd=PASSWD         Set HTTP password. This affects all URLs.


                              Tags: #basic, #http


 --load-cookies=FILE          Load Cookies from FILE using the Firefox3 format
                              and Mozilla/Firefox(1.x/2.x)/Netscape format.


                              Possible Values: /path/to/file
                              Tags: #basic, #http, #cookie


 -S, --show-files[=true|false] Print file listing of .torrent, .meta4 and
                              .metalink file and exit. More detailed
                              information will be listed in case of torrent
                              file.


                              Possible Values: true, false
                              Default: false
                              Tags: #basic, #metalink, #bittorrent


 --max-overall-upload-limit=SPEED Set max overall upload speed in bytes/sec.
                              0 means unrestricted.
                              You can append K or M(1K = 1024, 1M = 1024K).
                              To limit the upload speed per torrent, use
                              --max-upload-limit option.


                              Possible Values: 0-*
                              Default: 0
                              Tags: #basic, #bittorrent


 -u, --max-upload-limit=SPEED Set max upload speed per each torrent in
                              bytes/sec. 0 means unrestricted.
                              You can append K or M(1K = 1024, 1M = 1024K).
                              To limit the overall upload speed, use
                              --max-overall-upload-limit option.


                              Possible Values: 0-*
                              Default: 0
                              Tags: #basic, #bittorrent


 -T, --torrent-file=TORRENT_FILE  The path to the .torrent file.


                              Possible Values: /path/to/file
                              Tags: #basic, #bittorrent


 --listen-port=PORT...        Set TCP port number for BitTorrent downloads.
                              Multiple ports can be specified by using ',',
                              for example: "6881,6885". You can also use '-'
                              to specify a range: "6881-6999". ',' and '-' can
                              be used together.


                              Possible Values: 1024-65535
                              Default: 6881-6999
                              Tags: #basic, #bittorrent


 --enable-dht[=true|false]    Enable IPv4 DHT functionality. It also enables
                              UDP tracker support. If a private flag is set
                              in a torrent, aria2 doesn't use DHT for that
                              download even if ``true`` is given.


                              Possible Values: true, false
                              Default: true
                              Tags: #basic, #bittorrent


 --dht-listen-port=PORT...    Set UDP listening port used by DHT(IPv4, IPv6)
                              and UDP tracker. Multiple ports can be specified
                              by using ',', for example: "6881,6885". You can
                              also use '-' to specify a range: "6881-6999".
                              ',' and '-' can be used together.


                              Possible Values: 1024-65535
                              Default: 6881-6999
                              Tags: #basic, #bittorrent


 --enable-dht6[=true|false]   Enable IPv6 DHT functionality.
                              Use --dht-listen-port option to specify port
                              number to listen on. See also --dht-listen-addr6
                              option.


                              Possible Values: true, false
                              Default: false
                              Tags: #basic, #bittorrent


 --dht-listen-addr6=ADDR      Specify address to bind socket for IPv6 DHT. 
                              It should be a global unicast IPv6 address of the
                              host.


                              Tags: #basic, #bittorrent


 -M, --metalink-file=METALINK_FILE The file path to the .meta4 and .metalink
                              file. Reads input from stdin when '-' is
                              specified.


                              Possible Values: /path/to/file, -
                              Tags: #basic, #metalink


URI, MAGNET, TORRENT_FILE, METALINK_FILE:
 You can specify multiple HTTP(S)/FTP URIs. Unless you specify -Z option, all
 URIs must point to the same file or downloading will fail.
 You can also specify arbitrary number of BitTorrent Magnet URIs, torrent/
 metalink files stored in a local drive. Please note that they are always
 treated as a separate download.


 You can specify both torrent file with -T option and URIs. By doing this,
 download a file from both torrent swarm and HTTP/FTP server at the same time,
 while the data from HTTP/FTP are uploaded to the torrent swarm. For single file
 torrents, URI can be a complete URI pointing to the resource or if URI ends
 with '/', 'name' in torrent file is added. For multi-file torrents, 'name' and
 'path' in torrent are added to form a URI for each file.


 Make sure that URI is quoted with single(') or double(") quotation if it
 contains "&" or any characters that have special meaning in shell.


About the number of connections
 Since 1.10.0 release, aria2 uses 1 connection per host by default and has 20MiB
 segment size restriction. So whatever value you specify using -s option, it
 uses 1 connection per host. To make it behave like 1.9.x, use
 --max-connection-per-server=4 --min-split-size=1M.


Refer to man page for more information.

用法:aria2c [选项] [URI | MAGNET | TORRENT_FILE | METALINK_FILE] ...
打印选项标记为'#basic'。
请参见“aria2c -h#help”以了解所有可用的标记。
选项:
 -v,--version打印版本号并退出。


                              标签:#basic


 -h,--help [= TAG | KEYWORD]打印使用情况并退出。
                              帮助消息使用标记进行分类。标签
                              以。。开始 ”#”。例如,键入“--help =#http”
                              以获取标记的选项的用法
                              “#http”。如果给出了非标记词,则打印使用
                              对于其名称包含该单词的选项。


                              可能的值:#basic,#advanced,#http,#https,#ftp,#metalink,#bittorrent,#cookie,#hook,#file,#rpc,#checksum,#experimental,#deprecated,#help,#all
                              默认值:#basic
                              标签:#basic,#help


 -l,--log = LOG日志文件的文件名。如果“ - ”是
                              指定,日志写入stdout。


                              可能的值:/ path / to / file, - 
                              标签:#basic


 -d,--dir = DIR存储下载文件的目录。


                              可能的值:/ path / to / directory
                              默认值:D:\ aria2 \ aria2
                              标签:#basic,#file


 -o,-out = FILE下载文件的文件名。什么时候
                              使用-Z选项,此选项将会 
                              忽略。


                              可能的值:/ path / to / file
                              标签:#basic,#http,#ftp,#file


 -s,--split = N使用N个连接下载文件。如果更多
                              给出N个URI,则使用前N个URI
                              剩余的URL用于备份。如果小于
                              给定N个URI,那些URL的使用超过
                              一次,使得产生N个连接总数
                              同时。连接数
                              同一主机受限于 
                              --max-connection-per-server选项。参见
                              --min-split-size选项。


                              可能的值:1- *
                              默认值:5
                              标签:#basic,#http,#ftp


 --file-allocation = METHOD指定文件分配方法。
                              'none'不预分配文件空间。'prealloc'
                              在下载开始前预分配文件空间。
                              这可能需要一些时间,具体取决于大小
                              文件。
                              如果您使用较新的文件系统,如ext4
                              (具有盘区支持),btrfs,xfs或NTFS
                              (仅MinGW构建),'falloc'是你最好的
                              选择。它分配大(几个GiB)文件
                              几乎瞬间。不要使用'falloc'与遗产
                              文件系统,如ext3和FAT32,因为它
                              几乎与'prealloc'和它的时间相同
                              完全阻塞aria2,直到分配完成。
                              'falloc'可能不可用,如果你的系统
                              没有posix_fallocate()函数。
                              'trunc'使用ftruncate()系统调用或
                              平台特定对象截断文件
                              到指定长度。


                              可能的值:none,prealloc,trunc,falloc
                              默认值:prealloc
                              标签:#basic,#file


 -V,--check-integrity [= true | false]通过验证片段来检查文件完整性
                              散列或整个文件的散列。此选项具有
                              效果只有在BitTorrent,Metalink下载
                              与校验和或HTTP(S)/ FTP下载
                              --checksum选项。如果提供散片,
                              此选项可以检测文件的损坏部分
                              并重新下载。如果整个文件的哈希
                              提供,哈希检查只有当文件有
                              已经下载。这由文件确定
                              长度。如果散列检查失败,文件是
                              从头开始重新下载。如果两个片断
                              并提供整个文件的哈希值
                              使用散列。


                              可能的值:true,false
                              默认值:false
                              标签:#basic,#metalink,#bittorrent,#file,#checksum


 -c,--continue [= true | false]继续下载部分下载的内容
                              文件。使用此选项恢复下载
                              由Web浏览器或其他程序启动
                              它从中顺序地下载文件
                              开始。目前只有这个选项
                              适用于http(s)/ ftp下载。


                              可能的值:true,false
                              默认值:false
                              标签:#basic,#http,#ftp


 -i,--input-file = FILE下载在FILE中找到的URI。您可以指定
                              单个实体的多个URI:单独
                              使用TAB字符在一行上的URI。
                              当指定了' - '时从stdin读取输入。
                              此外,可以在每个选项之后指定选项
                              线的URI。此可选行必须以
                              一个或多个空格,每个有一个选项
                              单线。请参见手册页的INPUT FILE部分
                              详情。另请参见--deferred-input选项。


                              可能的值:/ path / to / file, - 
                              标签:#basic


 -j,--max-concurrent-downloads = N设置并行下载的最大数量
                              每个静态(HTTP / FTP)URL,洪流和metalink。
                              另请参见--split选项。


                              可能的值:1- *
                              默认值:5
                              标签:#basic


 -Z,--force-sequential [= true | false]按顺序在命令行中获取URI
                              并在单独的会话中下载每个URI,如
                              通常的命令行下载实用程序。


                              可能的值:true,false
                              默认值:false
                              标签:#basic


 -x,--max-connection-per-server = NUM​​到一个的最大连接数
                              服务器进行每次下载。


                              可能的值:1-16
                              默认值:1
                              标签:#basic,#http,#ftp


 -k,--min-split-size = SIZE aria2不分割小于2 * SIZE字节范围。
                              例如,让我们考虑下载20MiB
                              文件。如果SIZE为10M,aria2可以将文件拆分为2
                              范围[0-10MiB]和[10MiB-20MiB]并下载
                              使用2个源(如果--split> = 2,当然)。
                              如果SIZE是15M,因为2 * 15M> 20MiB,aria2
                              不分割文件,并使用1源下载。
                              您可以追加K或M(1K = 1024,1M = 1024K)。


                              可能的值:1048576-1073741824
                              默认值:20M
                              标签:#basic,#http,#ftp


 --ftp-user = USER设置FTP用户。这会影响所有网址。


                              标签:#basic,#ftp


 --ftp-passwd = PASSWD设置FTP密码。这会影响所有网址。


                              标签:#basic,#ftp


 --http-user = USER设置HTTP用户。这会影响所有网址。


                              标签:#basic,#http


 --http-passwd = PASSWD设置HTTP密码。这会影响所有网址。


                              标签:#basic,#http


 --load-cookies = FILE使用Firefox3格式从FILE加载Cookie
                              和Mozilla / Firefox(1.x / 2.x)/ Netscape格式。


                              可能的值:/ path / to / file
                              标签:#basic,#http,#cookie


 -S,--show-files [= true | false]打印文件列表.torrent,.meta4和
                              .metalink文件并退出。更详细
                              信息将列出的情况下的洪流
                              文件。


                              可能的值:true,false
                              默认值:false
                              标签:#basic,#metalink,#bittorrent


 --max-overall-upload-limit = SPEED设置最大总上传速度(以字节/秒为单位)。
                              0表示无限制。
                              您可以追加K或M(1K = 1024,1M = 1024K)。
                              要限制每个torrent的上传速度,请使用
                              --max-upload-limit选项。


                              可能的值:0- *
                              默认值:0
                              标签:#basic,#bittorrent


 -u,--max-upload-limit = SPEED设置每个torrent的最大上传速度
                              字节/秒。0表示无限制。
                              您可以追加K或M(1K = 1024,1M = 1024K)。
                              要限制总体上传速度,请使用
                              --max-overall-upload-limit选项。


                              可能的值:0- *
                              默认值:0
                              标签:#basic,#bittorrent


 -T, -  torrent-file = TORRENT_FILE .torrent文件的路径。


                              可能的值:/ path / to / file
                              标签:#basic,#bittorrent


 --listen-port = PORT ...为BitTorrent下载设置TCP端口号。
                              可以使用','指定多个端口,
                              例如:“6881,6885”。你也可以使用' - '
                              以指定范围:“6881-6999”。','和' - '可以
                              一起使用。


                              可能的值:1024-65535
                              默认值:6881-6999
                              标签:#basic,#bittorrent


 --enable-dht [= true | false]启用IPv4 DHT功能。它也使能
                              UDP跟踪器支持。如果设置了专用标志
                              在洪流中,aria2不使用DHT
                              下载即使给出了``true``。


                              可能的值:true,false
                              默认值:true
                              标签:#basic,#bittorrent


 --dht-listen-port = PORT ...设置DHT使用的UDP侦听端口(IPv4,IPv6)
                              和UDP跟踪。可以指定多个端口
                              通过使用',',例如:“6881,6885”。您可以
                              还可以使用“ - ”指定范围:“6881-6999”。
                              ','和' - '可以一起使用。


                              可能的值:1024-65535
                              默认值:6881-6999
                              标签:#basic,#bittorrent


 --enable-dht6 [= true | false]启用IPv6 DHT功能。
                              使用--dht-listen-port选项指定端口
                              要听的号码。请参阅--dht-listen-addr6
                              选项。


                              可能的值:true,false
                              默认值:false
                              标签:#basic,#bittorrent


 --dht-listen-addr6 = ADDR指定IPv6 DHT套接字的地址。 
                              它应该是一个全球单播IPv6地址
                              主办。


                              标签:#basic,#bittorrent


 -M,--metalink-file = METALINK_FILE .meta4和.metalink的文件路径
                              文件。当' - '是时从stdin读取输入
                              指定。


                              可能的值:/ path / to / file, - 
                              标签:#basic,#metalink


URI,MAGNET,TORRENT_FILE,METALINK_FILE:
 您可以指定多个HTTP(S)/ FTP URI。除非你指定-Z选项,全部
 URI必须指向相同的文件或下载将失败。
 您还可以指定任意数量的BitTorrent磁石URIs,torrent /
 metalink文件存储在本地驱动器中。请注意,他们总是
 被视为单独下载。


 您可以指定具有-T选项和URIs的torrent文件。通过做这个,
 从torrent swarm和HTTP / FTP服务器同时下载一个文件,
 而来自HTTP / FTP的数据被上传到torrent群集。单文件
 torrent,URI可以是指向资源的完整URI,或者如果URI结束
 带有'/','name'在torrent文件中添加。对于多文件torrent,'名称'和
 在torrent中的“路径”被添加以形成每个文件的URI。


 确保URI使用单引号(')或双引号(“)引用
 包含“&”或任何在shell中有特殊含义的字符。


关于连接数
 自1.10.0版本以来,aria2默认使用每个主机1个连接,并且有20MiB
 段大小限制。因此,无论使用-s选项指定的值,它都是
 每个主机使用1个连接。要使它的行为像1.9.x,使用
 --max-connection-per-server = 4 --min-split-size = 1M。


有关详细信息,请参阅手册页。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值