mobile wallpaper 1mobile wallpaper 2mobile wallpaper 3mobile wallpaper 4mobile wallpaper 5mobile wallpaper 6mobile wallpaper 7mobile wallpaper 8mobile wallpaper 9mobile wallpaper 10mobile wallpaper 11mobile wallpaper 12mobile wallpaper 13mobile wallpaper 14mobile wallpaper 15mobile wallpaper 16mobile wallpaper 17mobile wallpaper 18mobile wallpaper 19mobile wallpaper 20mobile wallpaper 21mobile wallpaper 22
280 字
1 分钟
Aria2【Linux版本使用教程】
2026-02-03

【Linux】Aria2使用指南#

  1. 基本介绍:aria2 是一个轻量级、多协议的命令行下载工具,支持 HTTP、HTTPS、FTP、SFTP、BitTorrent、Metalink 等协议,并可通过多连接同时从多个来源下载文件,大幅提升速度。
  2. 安装方法
  • Debian/Ubuntu

    sudo apt update
    sudo yum install aria2
  • CentOS/RHEL

    sudo yum install aria2
  • Fedora

    sudo dnf install aria2
  1. 常用下载示例
  • 单文件下载

    aria2c http://example.com/file.zip
  • 多文件下载

    aria2c http://example.com/file1.zip http://example.com/file2.zip
  • 断点续传

    aria2c -c http://example.com/largefile.zip
  • 多线程下载(4个连接)

    aria2c -x 4 http://example.com/largefile.zip
  • 磁力链接下载

    aria2c "magnet:?xt=urn:btih:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  1. 进阶功能
  • 限速

    aria2c --max-download-limit=500K http://example.com/file.zip
  • 指定目录

    aria2c -d /path/to/directory http://example.com/file.zip\
    NOTE

    指定目录命令一定要记住,非常好用!

  • 后台运行(守护进程)

    aria2c --daemon http://example.com/file.zip
    NOTE

    **后台运行(守护进程)**命令一定要记住,非常好用!

  • 使用配置文件~/.aria2/aria2.conf

    continue=true
    max-connection-per-server=4
    dir=/path/to/downloads
    max-download-limit=1M
  • 运行:

    aria2c --conf-path=/path/to/aria2.conf http://example.com/file.zip
    • 启用JSON-RPC远程控制

      aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all --rpc-listen-port=6800
  • 实用技巧

    • 静默模式-q --show-console-readout=false

    • 文件完整性校验--check-integrity

    • 定时任务下载(每天凌晨3点)

      0 3 * * * /usr/bin/aria2c -d /path/to/directory http://example.com/dailyfile.zip

      aria2 在 Linux 下不仅支持多协议高速下载,还能通过 RPC 与其他程序集成,非常适合服务器环境批量、自动化下载任务。

分享

如果这篇文章对你有帮助,欢迎分享给更多人!

Aria2【Linux版本使用教程】
https://v-blog.halei0v0.top/posts/post10linuxaria2使用指南/
作者
哈雷0V0
发布于
2026-02-03
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

封面
Sample Song
Sample Artist
封面
Sample Song
Sample Artist
0:00 / 0:00