最後更新: 2019-06-10
介紹
High speed download utility
支援 HTTP(S), FTP, SFTP, BitTorrent, Metalink.
Usage
aria2c [<OPTIONS>] [<URI>|<MAGNET>|<TORRENT_FILE>|<METALINK_FILE>]
Useful Opts
-d, --dir=<DIR>
The directory to store the downloaded file. Default 當前目錄
-c, --continue[=true|false]
Continue downloading a partially downloaded file. Default: true
Currently support HTTP(S)/FTP downloads
-l, --log=<LOG> The file name of the log file.
Output
CN 連線數量
[#e77b6d 41MiB/256MiB(16%) CN:4 DL:1.0MiB ETA:3m34s]
Control file(*.aria2)
aria2 uses a control file to track the progress of a download.
a control file is deleted once download completed.
Normally if you lose a control file, you cannot resume download.
--auto-save-interval=<SEC> # 0~600. Default: 60
DL test.bin 時
test.bin # 空間一早分配好 test.bin.aria2 # Control File
Parallel Download
-x, --max-connection-per-server=<NUM>
The maximum number of connections to one server for each download. Default: 1
-j, --max-concurrent-downloads=<N>
Limits the number of items which are downloaded concurrently. Default: 5
--split and --min-split-size
--split(-s) N # Default: 5
Download a file using N connections.
* 此 settings 受 --max-connection-per-server 影響
--min-split-size(-k) SIZE # Default: 20M
aria2 does not split less than 2*SIZE byte range.
Summary
- Default 不會 concurrent download
- File Size < 40M 不會 concurrent download
- 基一上使用 "-x N" 就可以 concurrent >= 40M 檔
FTP
Login
- --ftp-user=<USER>
- --ftp-passwd=<PASSWD>