Aria2是一款开源下载工具,可简化不同设备和服务器之间的下载过程,支持磁力链接、BT种子、http等类型的文件下载,具有优秀性能及较低的资源占用,架构轻巧。
Aria2
upported protocols
HTTP(S)
FTP
SFTP
BitTorrent(BT)
Metalink
启动设置 设置环境变量
1.将aria2c.exe放置在自定义文件夹。
2.将<自定义文件路径>
添加至环境变量PATH即可。
3.终端中输入aria2c即可(可自定义该执行文件名称)。
Start.vbs 1 2 3 4 5 CreateObject ("WScript.Shell" ).Run "aria2c.exe --conf-path=D:\Applications\Aria2\aria2.conf" ,0
Start.bat(同vbs) 1 2 @echo off & title Aria2 aria2c.exe --conf-path=aria2.conf
Stop.bat 1 2 3 @echo off & title Aria2 Stop Taskkill /F /IM aria2c.exe pause > nul
Restart.bat 1 2 Taskkill /F /IM aria2c.exe start Start.vbs
Boot.bat 1 2 3 4 5 6 7 @echo off & title Aria2 开机启动 echo 1.将 Aria2 设为开机启动echo 2.取消 Aria2 开机启动set /p aria2= 请输入对应的序号:IF %aria2% EQU 1 (REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ /v Aria2 /t REG_SZ /d %cd %\Start.vbs /f) IF %aria2% EQU 2 (REG DELETE HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\ /v Aria2 /f) pause > nul
新建文件
Aria2.log:日志文件
aria2.session:下载历史文件
aria2.conf:配置文件
UI
Aria2 Web
Aria2Ng
webui-aria2
yaaw
aria2.conf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 dir=E:\Downloads log =E:\APP\Aria2\aria2.logdisk-cache=16M continue =true user-agent=netdisk;5.2.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia referer=http://pan.baidu.com/disk/home max-connection-per-server=6 min-split-size=10M daemon=true input-file=E:\APP\Aria2\aria2.session save-session=E:\APP\Aria2\aria2.session enable-rpc=true rpc-allow-origin-all=true rpc-listen-all=true rpc-listen-port=6800 bt-detach-seed-only=true listen-port=51413 enable-dht=true bt-enable-lpd=true enable-peer-exchange=true peer-id-prefix=-TR2770- user-agent=Transmission/2.77 seed-ratio=0 bt-seed-unverified=true bt-save-metadata=true
命令行 Aria2 Documentation
1 2 aria2c https://dl101.zlibcdn.com/dtoken/c8bc6a947d196ee591a12c763f135b9faria2c https://w.wallhaven.cc/full/3z/wallhaven-3z32j3.jpg
Example 1.Download a file
1 $ aria2c "http://host/file.zip"
To stop a download, press Ctrl-C . You can resume the transfer by running aria2c with the same argument in the same directory .
2.Download a file from two different HTTP servers
1 $ aria2c "http://host/file.zip" "http://mirror/file.zip"
3.Download a file from one host using multiple connections
1 $ aria2c -x2 -k1M "http://host/file.zip"
Basic Options
The directory to store the downloaded file.
1 aria2c -d C:\Users\29921\Desktop https://w.wallhaven.cc/full/rd/wallhaven-rddgwm.jpg
Downloads the URIs listed in FILE.
1 C:\Users\29921\Desktop>aria2c -i urls.txt
1 2 3 4 5 https://w.wallhaven.cc/full/8o/wallhaven-8ok7vk.jpg https://w.wallhaven.cc/full/g7/wallhaven-g75r7d.jpg https://w.wallhaven.cc/full/8o/wallhaven-8oev1j.jpg https://w.wallhaven.cc/full/j3/wallhaven-j3wqwm.jpg
You can specify multiple sources for a single entity by putting multiple URIs on a single line separated by the TAB character. Additionally, options can be specified after each URI line.Option lines must start with one or more white space characters (SPACE or TAB) and must only contain one option per line. Input files can use gzip compression.
The file name of the log file.
If - is specified, log is written to stdout.If empty string(“ “) is specified, or this option is omitted, no log is written to disk at all.
1 aria2c -l aria2.log https://w.wallhaven.cc/full/rd/wallhaven-rdqxmm.jpg
Set the maximum number of parallel downloads for every queue item.(Default:5)
1 -j, --max-concurrent-downloads=<N>
1 2 aria2c -i urls.txt -j1 aria2c -i urls.txt -j5
1 2 3 4 5 6 7 https://w.wallhaven.cc/full/p8/wallhaven-p86z2j.jpg https://w.wallhaven.cc/full/v9/wallhaven-v9py65.jpg https://w.wallhaven.cc/full/vg/wallhaven-vgyozm.jpg https://w.wallhaven.cc/full/j5/wallhaven-j55e7y.jpg https://w.wallhaven.cc/full/83/wallhaven-83xjgo.jpg https://w.wallhaven.cc/full/g8/wallhaven-g8yx37.jpg
-V, –check-integrity [true|false]
Default: false
Check file integrity by validating piece hashes or a hash of entire file.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.
-c, –continue [true|false]
Default: true
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
1 aria2c -cfalse https://dldir1.qq.com/music/clntupate/QQMusicSetup.exe