- 浏览: 326368 次
文章分类
- 全部博客 (116)
- Oracle (29)
- MySQL (2)
- Java (20)
- .NET (2)
- Javascript (4)
- Spring (6)
- Struts (6)
- Hibernate (16)
- JSP (6)
- Tomcat (1)
- Quartz (2)
- RCS (1)
- Translate (12)
- PL/SQL (5)
- Sqlplus (1)
- System (6)
- Linux (11)
- Ubuntu (9)
- Windows (10)
- Mac (2)
- Tools (8)
- Mercurial (1)
- Google Code (1)
- Subversion (1)
- Debian (2)
- Freemarker (6)
- Web (2)
- PHP (1)
- Nginx (1)
最新评论
-
sunday1207:
private Class getParameterizedT ...
java 中 BaseDao 在Hibernate中的用法 -
SkimSkim:
你这里的解压是把文件夹11下面的所有文件都放在ins这个文件夹 ...
ubuntu 在终端使用 sqlplus 连接远程数据库 -
as619864232:
漫步邃思 写道其实常用的就那么几个命令,大部分都用不到的是啊, ...
windows cmd 命令 -
漫步邃思:
其实常用的就那么几个命令,大部分都用不到的
windows cmd 命令
Usage Sample
This page describes the usage examples of aria2. For the complete options, see online manual . See also BashCompletion .
For XML-RPC interface, see XmlrpcInterface . For IPv6, see also IPv6 Support Status .
Make sure that URI is quoted with single(') or double(") quotation if it contains "&" or any characters that have special meaning in shell.
As of 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. Please note that this connection restriction is applied to 1 host. If you specify multiple hosts, aria2 will use them all and open multiple connections. To make it behave like 1.9.x, use -x 16 -k 1M . See --max-connection-per-server and --min-split-size in the manual page .
By default, aria2 allocates files before download them to
prevent possible fragmentation. But it is reported that it uses
50%-90% CPU and slows down their PCs on some platforms.
If you are using newer file systems such as ext4(with extens
enabled), btrfs, xfs or NTFS(MinGW32 build only and requires aria2 1.12.0 or later), I recommend to
use --file-allocation
=falloc
. It allocates
large(few GiB) files almost instantly and it doesn't slow down
your PC at all.
If you are neither using cutting edge file systems nor Linux user and mind this
slow down, turn off file allocation by
giving --file-allocation
=none
.
If you forget about the full name of options or its details, put -h before the option or words in option name, like aria2c -hcrypt . aria2 searches options which contains specified words and print their usage. You can leave other options or URIs when using -h option. If aria2 finds -h , it stops after printing the help message.
Index
一、Basic Usage
- Download a file
- Download a file using 2 connections
- Download a file from HTTP and FTP servers
- Parallel downloads of arbitrary number of URI, metalink, torrent
- Download files listed in a file concurrently
- Save error/unfinished downloads on exit
二、Metalink Download
- Download files with remote metalink
- Download files with remote Metalink; metalink file itself is processed in …
- Download using a local metalink file
- Download file using 5 servers
- Download several local metalink files
- Print the contents of the metalink file
- Download only selected files using index
- Download a file using a local metalink file with user preference
三、BitTorrent Download
- Download files from remote BitTorrent file
- Download files from remote BitTorrent file; torrent file itself is …
- Download using a local torrent file
- Download using BitTorrent Magnet URI
- Save metadata as .torrent file
- Adjust the number of peers adaptively
- Enable DHT
- Enable IPv6 DHT
- Add and remove tracker URI
- Encryption
- Print the contents of the torrent file:
- Download only selected files using index (usually called "selectable …
- Change the listening port for incoming peer
- Specify the condition to stop program after torrent download finished
- Throttle upload speed
- Seeding already downloaded file
- Specify file name with index
- Prioritize piece for previewing files
四、Use With Proxy
- Set proxy server to use all protocols(HTTP(S)/FTP)
- Set proxy server to be in HTTP only
- Use proxy that requires authentication
五、Advanced HTTP Features
- Load cookies
- Resume download started by web browsers or another programs
六、Other Advanced Features
- Throttle download speed
- Repair a damaged download using -V option
- Drop connection if download speed is lower than specified value
- Parameterized URI support
- Time-stamping
- Execute command when download finishes
- Writing to /dev/null
七、Input File
Basic Usage
Download a file
aria2c http://host/image.iso
Note: As of 1.10.0, aria2 uses 1 connection per host in each download. You can change this using --max-connection-per-server or its short form -x option.
To download a file using 2 connections from single host:
aria2c -x2 http://host/image.iso
Note: To stop a download, press Ctrl-C . You can resume the transfer by running aria2c with the same arguments at the same directory. You can change URIs as long as they are pointing to the same file.
Download a file using 2 connections
aria2c -s2 http://host/image.iso http://mirror1/image.iso http://mirror2/image.iso
Note: If you specify URIs more than the value of -s option, for this example, 2, first 2 URIs are used and 3rd URI is used for backup, which means if one of first 2 URIs are failed then 3rd is kicked in.
Download a file from HTTP and FTP servers
aria2c http://host1/file.zip ftp://host2/file.zip
Parallel downloads of arbitrary number of URI, metalink, torrent
aria2c -Z http://host/file1 file2.torrent file3.metalink
Note: If you specify only torrent or metalink file stored in your local disk, then -Z option is not required. So you can do:
aria2c file1.torrent file2.torrent
Download files listed in a file concurrently
aria2c -ifiles.txt -j5
Note: -j option specifies the number of concurrent downloads. You can include local torrent and metalink files in a list file.
Note: You can specify several options in the input file. See Input File section.
Save error/unfinished downloads on exit
aria2c -ifiles.txt --save-session=out.txt
When you press Ctrl-C or aria2 exits, all error/unfinished downloads are saved in out.txt . Note that downloads added by aria2.addTorrent and aria2.addMetalink XML-RPC method are not saved. You can use this file as an input file to restart downloads:
aria2c -iout.txt
Metalink Download
Download files with remote metalink
aria2c http://host/file.metalink
Download files with remote Metalink; metalink file itself is processed in memory
aria2c --follow-metalink=mem http://host/file.metalink
Download using a local metalink file
aria2c -t10 --lowest-speed-limit=4000 file.metalink
Note: To stop a download, press Ctrl-C . You can resume the transfer by running aria2c with the same arguments at the same directory.
Download file using 5 servers
aria2c -C5 file.metalink
Note: With metalink file, -s option has no effect. Use -C option instead.
Download several local metalink files
aria2c file1.metalink file2.metalink
Print the contents of the metalink file
aria2c -S file.metalink
Download only selected files using index
aria2c --select-file=1-4,8 -Mfile.metalink
Note: The index is printed to the console using -S option.
Download a file using a local metalink file with user preference
aria2c --metalink-location=JP,US --metalink-version=1.1 --metalink-language=en-US file.metalink
BitTorrent Download
Download files from remote BitTorrent file
aria2c http://site/file.torrent
Download files from remote BitTorrent file; torrent file itself is processed in memory
aria2c --follow-torrent=mem http://site/file.torrent
Download using a local torrent file
aria2c -u40K /path/to/file.torrent
Note: -u , --max-upload-limit specifies the max upload rate.
Note: To stop a download, press Ctrl-C . You can resume the transfer by running aria2c with the same arguments at the same directory.
You can download multiple torrents.
aria2c /path/to/file1.torrent /path/to/file2.torrent
Download using BitTorrent Magnet URI
aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"
NOTE: Don't forget to quote BitTorrent Magnet URI which includes "&" character with single(') or double(") quotation. It is strongly recommended to enable DHT when you use Magnet URI. See --enable-dht option.
Save metadata as .torrent file
aria2c --bt-save-metadata "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"
The above command will save metadata as a torrent file named as "248d0a1cd08284299de78d5c1ed359bb46717d8c.torrent"
Adjust the number of peers adaptively
If the whole download speed of every torrent is lower than 200K, aria2 temporarily increases the number of peers to try for more download speed.
aria2c --bt-request-peer-speed-limit=200K file.torrent
Note: Configuring --bt-request-peer-speed-limit option with your preferred download speed can increase your download speed in some cases.
Enable DHT
aria2c --enable-dht http://site/file.torrent
Note: Since 1.7.2, DHT is enabled by default. DHT doesn't start while aria2 only handles HTTP/FTP downloads. On the first torrent download begins, aria2 initiates DHT functionality. After that, DHT runs until aria2 exits. Prior 1.7.2, DHT is disabled by default.
Enable IPv6 DHT
aria2c --enable-dht6 --dht-listen-port=6881 --dht-listen-addr6=YOUR_GLOBAL_UNICAST_IPV6_ADDR --enable-async-dns6
Note: If aria2c is not built with c-ares, --enable-async-dns6 is unnecessary. aria2 shares same port between IPv4 and IPv6 DHT.
Add and remove tracker URI
The following example instructs aria2 to removes all tracker announce URIs described in file.torrent and use "http://tracker1/announce" and "http://tracker2/announce" instead.
aria2c --bt-exclude-tracker="*" --bt-tracker="http://tracker1/announce,http://tracker2/announce" file.torrent
Encryption
By default, aria2 accepts both encrypted/unencrypted connections and it first tries encryption(obfuscation) handshake and if it fails then falls back to legacy BitTorrent handshake.
To instruct aria2 to only accept and establish connection with encryption handshake,
aria2c --bt-require-crypto=true http://site/file.torrent
There are 2 types of encryption: header only or full connection. By default, if both types of encryption are provided by peer, aria2 chooses header only encryption. To instruct aria2 to always use full connection encryption,
aria2c --bt-min-crypto-level=arc4 http://site/file.torrent
Print the contents of the torrent file:
aria2c -S file.torrent
Download only selected files using index (usually called "selectable download")
aria2c --select-file=1-4,8 -Tfile.torrent
Note: The index is printed to the console using -S option.
Change the listening port for incoming peer
aria2c --listen-port=6881-6883 file.torrent
Note: Make sure that the specified ports are open for incoming/outgoing TCP traffic.
Specify the condition to stop program after torrent download finished
aria2c --seed-time=120 --seed-ratio=1.0 file.torrent
Note: In the above example, the program exists when the 120 minutes has elapsed since download completed or seed ratio reaches 1.0.
Throttle upload speed
aria2c --max-upload-limit=100K file.torrent
Seeding already downloaded file
You can seed downloaded file using -V option. This will first check piece hashes for the downloaded file.
aria2c -V -d/path/to/dir file.torrent
If you are sure the file is correct, then use --bt-seed-unverified option to skip hash check before seeding.
aria2c --bt-seed-unverified -d/path/to/dir file.torrent
You can seed multiple torrents.
aria2c --bt-seed-unverified -d/path/to/dir file1.torrent file2.torrent
Specify file name with index
To specify output filename for BitTorrent downloads, you need to know the index of file in torrent file using -S option. For example, the output of -S option looks like this:
idx|path/length ===+====================== 1|dist/base-2.6.18.iso |99.9MiB ---+---------------------- 2|dist/driver-2.6.18.iso |169.0MiB ---+----------------------
To save dist/base-2.6.18.iso in /tmp/mydir/base.iso and dist/driver-2.6.18.iso in /tmp/dir/driver.iso , use the following command:
aria2c --dir=/tmp --index-out=1=mydir/base.iso --index-out=2=dir/driver.iso file.torrent
Note: The --index-out option with http URI to torrent file doesn't work. It only works with local torrent files. aria2 doesn't remember the file path specified in --index-out option. You have to specify --index-out option every time for resuming or seeding. aria2 doesn't warn you if you forget this option, so be careful.
Prioritize piece for previewing files
Download first 1MiB of each file in a torrent with high priority.
aria2c --bt-prioritize-piece=head file.torrent
Use With Proxy
Set proxy server to use all protocols(HTTP(S)/FTP)
aria2c --all-proxy='http://proxy:8080' http://host/file
Note: --all-proxy option can be overrode by protocol specific proxy options: --http-proxy , --https-proxy and --ftp-proxy .
Set proxy server to be in HTTP only
aria2c --http-proxy='http://proxy:8080' http://host/file
Use proxy that requires authentication
aria2c --http-proxy='http://proxy:8080' --http-proxy-user='username' --http-proxy-passwd='password' http://host/file
aria2c --http-proxy='http://username:password@proxy:8080' http://host/file
Note: username and password should be percent-encoded. For example, if username is 'myid@domain', then percent-encoded form is 'myid%40domain'.
Advanced HTTP Features
Load cookies
Load Mozilla/Firefox(1.x/2.x) and Netscape format:
aria2c --load-cookies=cookies.txt http://host/file
Load Firefox3 format:
aria2c --load-cookies=cookies.sqlite http://host/file
Note: You can use Firefox/Mozilla's cookie file without modification.
Resume download started by web browsers or another programs
aria2c -c -s2 http://host/partiallydownloadedfile.zip
Other Advanced Features
Throttle download speed
aria2c --max-download-limit=100K http://host/file
Repair a damaged download using -V option
aria2c -V file.metalink
Note: This option is only available used with BitTorrent? or metalink with chunk checksums.
Drop connection if download speed is lower than specified value
aria2c --lowest-speed-limit=10K file.metalink
Parameterized URI support
You can specify set of parts:
aria2c -P http://{host1,host2,host3}/file.iso
You can specify numeric sequence using []:
aria2c -Z -P http://host/image[000-100].png
Note: -Z option is required if the all URIs don't point to the same file, such as the above example.
You can specify step counter:
aria2c -Z -P http://host/image[A-Z:2].png
Time-stamping
aria2 gets timestamp of a file from the remote server and apply it to the local file.
aria2c -R http://host/file.iso
Execute command when download finishes
aria2c --on-download-complete=COMMAND http://example.org/file.iso
See also --on-download-error , --on-download-start and --on-download-stop option, or run "aria2c -h#hook ".
Writing to /dev/null
aria2c -d /dev -o null --allow-overwrite=true http://example.org/file
--allow-overwrite =true is needed to prevent aria2 from renaming existing /dev/null .
Input File
The input file can contain list of URIs to feed them into aria2. You can specify multiple URIs for a single entity: separate URIs on a single line using the TAB character.
Each line is treated as if it is provided in command-line argument. Therefore they are affected by -Z and -P options.
Additionally, options can be specified after each line of URIs. See Input File section in the manual page for complete list of available options. These options have exactly same meaning of the ones in the command-line options, but it just applies to the URIs it belongs to.
For example, let the content of uri.txt be:
http://server/file.iso http://mirror/file.iso dir=/iso_images out=file.img http://foo/bar
If aria2 is executed with -i uri.txt -d /tmp options, then file.iso is saved as /iso_images/file.img and it is downloaded from http://server/file.iso and http://mirror/file.iso. The file bar is downloaded from http://foo/bar and saved as /tmp/bar .
本文转自:http://sourceforge.net/apps/trac/aria2/wiki/UsageExample
发表评论
-
Nginx 开启对 PHP 的解析(转)
2013-06-30 00:27 11781安装 PHP 和 nginx 后,无法解析 PHP 文件。 ... -
Windows 下硬盘安装 Debian (转)
2013-04-20 16:33 17551.下载grub4dos2.解压grldr ... -
装完 Debian 时 vim 没颜色高亮
2012-11-18 20:40 1105vim /etc/vim/vimrc 去掉 syntax ... -
解决 Debian 中的 xxx is not in the sudoers file.(转)
2012-11-06 17:41 1492用sudo时提示"xxx is not i ... -
Linux 挂载 exFat
2012-11-04 16:20 14503在Linux的学习中为方便大家学习了解更多的Linux方面 ... -
关于 Resource interpreted as Script but transferred with MIME type text/plain
2012-10-13 15:41 8048添加一行 <meta http-equiv=&q ... -
Oracle 数据的导入和导出
2012-09-17 19:17 1168数据导出: 1 将数据库TEST完全导出,用户名system ... -
关闭Windows 7休眠功能并删除hiberfil.sys,还给C盘空间
2012-09-14 18:18 1293自从Windows XP 开始支持 ACPIAdva ... -
IDM 激活
2012-09-13 19:44 2069打开 C:\WINDOWS\system32\drivers\ ... -
在 KDE 下不能正常使用 fcitx 以及翻页问题
2012-08-22 21:18 5529在 kde 下使用 fcitx 的时候,不能在某些地方使 ... -
windows 使用 Chrome | Firefox + IDM 实现多人同时下载
2012-08-02 20:19 3850开头: Chrome 中安装插件:Tampermonke ... -
Windows 去除快捷方式小箭头真正无任何副作用的方法!
2012-08-02 12:10 3419前几天写过《Windows7去除快捷方式小箭头后会导致左侧收 ... -
Ubuntu 12.04 LTS 下安装 Windows
2012-07-28 13:05 1134硬盘安装: 1、准备工作: 准备2个 windows 下 ... -
MVC
2012-07-19 19:10 1307MVC模式(三层架构模 ... -
GoldenDict 在 Ubuntu 中的安装
2012-07-13 18:36 2143apt-get install goldendict ... -
在 Linux 下安装 JDK 和设置 JAVA 环境变量
2012-07-08 16:16 1790I know lot of you starting o ... -
学习 Linux
2012-06-10 11:31 10841、初识操作系统 冯诺伊曼 :现代计算机之父 ... -
Office 头部类型
2012-04-17 22:49 1167What are the Microsoft O ... -
windows cmd 命令
2012-03-29 16:38 1691运行\输入CMD\输入 对应 ...
相关推荐
网页版Aria2c使用教程 (1).mp4
- 使用`aria2c --check-certificate=false https://github.com/ziahamza/webui-aria2/archive/master.zip`下载webUI-aria2。 - 创建目录`mkdir webui-aria2`。 - 解压文件`unzip webui-aria2-master.zip -d webui...
它能让你享受 Aria2 一切的特性,同时又帮助你完全跳过安装和配置 Aria2 那些繁琐的过程。 PDM也提供了 Chrome 和 Firefox 的浏览器下载扩展插件,方便你上网时调用 PDM 进行下载。而最棒的是,PDM 同样也是开源、...
- **获取下载链接**:使用百度网盘助手获取分享文件的直链,这是Aria2能够启动下载的关键。 - **运行Aria2**:通过命令行输入特定格式的命令启动Aria2,如`aria2c -c -j 5 [下载链接]`,`-c`表示继续之前未完成的...
4. **库文件**:如果 aria2 使用了某些特定的库,这些库的二进制文件可能会被包含在内,以便在目标系统上运行。 5. **许可证文件**:aria2 是开源软件,所以会有 MIT 许可证或其他开源许可证文件,定义了软件的使用...
在 Windows 平台上,aria2 的使用通常需要配置和命令行操作,而“aria2 for windows 懒人版一键启动”则简化了这一过程,使得普通用户也能轻松使用。 **二、懒人版一键启动功能** 该版本的 aria2 提供了一个名为 ...
FlyVR.Aria2.Aria2cRuntime.Load(new FlyVR.Aria2.Aria2cSettings() { Aria2Args = "", Aria2Host = "localhost", Aria2Path = "aria2c.exe(aria2c的路径)", Aria2Port = 6800 }); FlyVR.Aria2.Aria2c faa = new ...
首先,下载源代码包,你可以从aria2的官方网站或者使用提供的`aria2-1.19.3.tar.gz`文件来获取。如果你已经有一个名为`aria2-1.19.3.tar.gz`的文件,只需解压它: ```bash tar xvf aria2-1.19.3.tar.gz cd aria2-...
Aria2D是用于macOS的简单Aria2 GUI。 aria2是一种轻量级的多协议和多源,跨平台下载实用程序,可在命令行中运行。它支持HTTP / HTTPS,FTP,SFTP,BitTorrent和Metalink。 https://aria2.github.io 特征 本...
在“Aria2.rar”这个压缩包中,包含了一整套运行Aria2所需的基本文件,使得用户无需安装,只需解压后简单操作即可开始使用,符合其作为绿色软件的特性。 首先,我们看到压缩包内的"ChangeLog"文件,这通常是记录...
**AriaNg Native** 是一个基于 Web 的 aria2 管理界面,与 aria2c 结合使用,提供了直观的图形用户界面。用户可以通过浏览器访问 http://localhost:6800/jsonrpc 这一默认的 RPC(远程过程调用)通信 URL 来管理和...
Aria2Mini是一款基于开源项目Aria2m构建的下载工具,它旨在提供一个简洁易用的用户界面,让用户能够像使用迅雷那样方便地利用Aria2进行下载任务。Aria2本身是一款功能强大的多协议、多源下载管理器,支持HTTP、HTTPS...
2. **配置aria2c**:在aria2c的配置文件(通常为`aria2.conf`)中,可以设置全局参数,比如下载目录、最大速度限制等。同时,可以启用JSON-RPC接口,这将允许我们通过其他程序(如浏览器扩展)来控制aria2c。 3. **...
标题中的“一个Windows下载器,使用C++,基于Aria2c开发”表明这是一个使用C++编程语言在Windows操作系统上构建的下载管理器程序。它利用了Aria2c库来实现高效的多线程、多源下载功能。Aria2c是一款轻量级的命令行...
在1.3.3这个版本中,Aria2已经预设了基本的配置,用户可以直接使用,无需额外设置Web界面,因为它内置了AriaNG,这是一个直观易用的图形用户界面。 Aria2的核心特性包括: 1. **多协议支持**:Aria2能够处理HTTP、...
aria2 version 1.33.1 Copyright (C) 2006, 2017 Tatsuhiro Tsujikawa ** Configuration ** Enabled Features: BitTorrent, Message Digest Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5 ...
使用前先配置aria2.conf 保存路径 dir= 授权令牌 rpc-secret= BT服务器地址 bt-tracker= 还带有WEBfuwu服务软件。 .\web\EasyWebSvr.exe Aria2 简介 Aria2 是一个多平台轻量级,支持 HTTP、FTP、BitTorrent 等多...
标题中的"Aria2下载器.zip(多线程优化版)win10可用"指的是一个针对Windows 10操作系统优化过的Aria2下载工具的压缩包。Aria2是一款开源、轻量级且功能强大的下载管理器,支持多种协议,如HTTP(S)、FTP、SFTP、...
ARM Linux 平台下静态编译安装 aria2 v1.36.0 armv7(arm32) Linux 开发板怎样安装 aria2 ? pcDuino (Linaro12 Linux ubuntu) 静态编译安装 aria2 安装步骤 tar -jxvf aria2-1.36.0-linux-gnu-arm-rbpi-build1.tar....
在使用"Aria2_Tools"压缩包时,你需要确保你的系统环境支持这些工具的运行,通常需要安装Java环境来运行Aria2。解压后,按照提供的说明配置Aria2的RPC设置,然后运行工具,输入m3u8文件的URL,工具会自动执行上述...