> 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.

# Aria下载器部署


AI 总结AI 生成

一套 Aria 下载环境由两个容器组成：
- `aria2` 负责下载。
- `AriaNg` 提供 Web 管理界面。
文章给出了可以直接使用的启动命令和端口映射。连接两个服务时，需要使用与 `RPC_SECRET` 一致的密码，避免下载接口暴露后被未授权访问。

## AriaNg Web界面

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

## Aria2下载服务

```bash
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` 作为连接密码
