For AI agents: the complete documentation index is available at https://www.tteam.icu/zh/llms.txt, the full documentation bundle is available at https://www.tteam.icu/zh/llms-full.txt, and this page is available as Markdown at https://www.tteam.icu/zh/blog/ops/%E3%80%90%E5%AE%9E%E7%94%A8%E7%9A%84docker%E5%B0%8F%E6%8A%80%E5%B7%A7%E3%80%91aria%E4%B8%8B%E8%BD%BD.md.
← 返回博客

Aria下载器部署

AI 总结AI 生成

一套 Aria 下载环境由两个容器组成:

  • aria2 负责下载。
  • AriaNg 提供 Web 管理界面。

文章给出了可以直接使用的启动命令和端口映射。连接两个服务时,需要使用与 RPC_SECRET 一致的密码,避免下载接口暴露后被未授权访问。

AriaNg Web界面

docker run -d \
--name ariang \
--restart unless-stopped \
-p 16880:6880 \
p3terx/ariang

Aria2下载服务

docker run -d \
--name aria2 \
--restart unless-stopped \
-e PUID=$UID \
-e PGID=$GID \
-e UMASK_SET=022 \
-e RPC_SECRET=prc_password \# 这里为连接的密码
-e RPC_PORT=6800 \
-e LISTEN_PORT=6888 \
-p 16800:6800 \
-p 16888:6888 \
-p 16888:6888/udp \
-v /data/docker/aria2/config:/config \
-v /data/docker/aria2/downloads:/downloads \
p3terx/aria2-pro

连接说明

使用 prc_password 作为连接密码