一款由日本开发者 Tatsuhiro Tsujikawa 用 C++ 编写的轻量级、开源、多协议命令行下载工具(下载引擎)。
它支持 HTTP/HTTPS、FTP、SFTP、BitTorrent 和 Metalink 等多种协议,核心特点是能通过多线程/多源分片下载最大化利用带宽,并内置 JSON-RPC/XML-RPC 接口支持远程控制与第三方前端(如 AriaNg)对接,常被称为下载界的“瑞士军刀”。
Aria2 安装命令 + 配置教程(2026 年最新)
Windows(最简单):
macOS(推荐 Homebrew):
Bash
brew install aria2Linux(Ubuntu/Debian):
Bash
sudo apt update && sudo apt install aria2Linux(CentOS/RHEL):
Bash
sudo yum install aria2Arch Linux:
Bash
sudo pacman -S aria2启动 Aria2(最常用):
Bash
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all=true常用下载命令示例:
Bash
# 下载单个文件
aria2c http://example.com/file.zip
# 下载磁力链接
aria2c "magnet:?xt=urn:btih:xxxxxxxxxxxxxxxx"
# 下载种子文件
aria2c file.torrent
# 限速下载
aria2c --max-download-limit=5M http://example.com/file.zip在 Aria2 目录创建 aria2.conf 文件,推荐配置如下:
ini
# 基本设置
dir=/path/to/download # 下载目录(自行修改)
file-allocation=prealloc
log-level=warn
# 下载速度
max-concurrent-downloads=5
max-connection-per-server=16
split=16
min-split-size=1M
max-overall-download-limit=0 # 0表示不限制
# BT 设置
bt-enable-lpd=true
bt-enable-peers=true
enable-dht=true
enable-dht6=true
bt-require-crypto=true
# RPC(供 Motrix/WebUI 使用)
enable-rpc=true
rpc-listen-all=true
rpc-allow-origin-all=true
rpc-secret=yourpassword # 设置访问密码
rpc-listen-port=6800启动命令(加载配置文件):
Bash
aria2c --conf-path=aria2.conf -D