Linux command
aria2 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Download
aria2c [https://example.com/file.zip]
Example
aria2c -x 16 -s 16 [https://example.com/file.zip]
Example
aria2c [http://mirror1.com/file] [http://mirror2.com/file]
Resume
aria2c -c [https://example.com/file.zip]
Example
aria2c [file.torrent]
Example
aria2c "[magnet:?xt=urn:btih:...]"
Example
aria2c -i [urls.txt]
Limit download speed
aria2c --max-download-limit=[500K] [https://example.com/file.zip]
说明
aria2 is a lightweight multi-protocol download utility supporting HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. It can download files using multiple connections and sources simultaneously for faster speeds. The actual command is aria2c (the "c" stands for command-line). The tool is highly optimized, using minimal memory (typically 4-9 MiB) while supporting advanced features like segmented downloading, BitTorrent, and JSON-RPC remote control.
参数
- -x _n_, --max-connection-per-server _n_
- Maximum connections per server (default: 1, max: 16)
- -s _n_, --split _n_
- Split download into n parts (default: 5)
- -c, --continue
- Resume a partially downloaded file
- -d _dir_, --dir _dir_
- Download directory
- -o _file_, --out _file_
- Output filename
- -j _n_, --max-concurrent-downloads _n_
- Maximum number of parallel downloads (default: 5)
- -i _file_, --input-file _file_
- Download URLs listed in file
- --max-download-limit _speed_
- Per-download speed limit (e.g., 500K, 2M)
- --max-overall-download-limit _speed_
- Overall download speed limit
- --enable-rpc
- Enable JSON-RPC/XML-RPC server for remote control
- --seed-time _minutes_
- BitTorrent seeding time (0 to disable seeding)
- --select-file _indices_
- Select specific files from a torrent (comma-separated indices)
- --file-allocation _method_
- File allocation method: none, prealloc, trunc, or falloc
FAQ
What is the aria2 command used for?
aria2 is a lightweight multi-protocol download utility supporting HTTP/HTTPS, FTP, SFTP, BitTorrent, and Metalink. It can download files using multiple connections and sources simultaneously for faster speeds. The actual command is aria2c (the "c" stands for command-line). The tool is highly optimized, using minimal memory (typically 4-9 MiB) while supporting advanced features like segmented downloading, BitTorrent, and JSON-RPC remote control.
How do I run a basic aria2 example?
Run `aria2c [https://example.com/file.zip]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -x _n_, --max-connection-per-server _n_ do in aria2?
Maximum connections per server (default: 1, max: 16)