> For the complete documentation index, see [llms.txt](https://huataihuang.gitbook.io/cloud-atlas-draft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huataihuang.gitbook.io/cloud-atlas-draft/service/aria2/aris2_with_yaaw.md).

# 使用aria2 WEB前端yaaw

[YAAW](https://github.com/binux/yaaw)是[aria2](https://aria2.github.io/)的WEB前端，无需运行HTTP服务或者后端服务器程序，只需要使用一个浏览器。

* 以RPC方式运行`aria2`

```
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all
```

> 此时访问`JSON-RPC`路径类似`http://hostname:port/jsonrpc`

如果`aria2`是版本1.18.4或者更高，建议设置 `--rpc-secret=<secret>` ，这样就可以使用 `http://token:secret@hostname:port/jsonrpc` 访问。

如果使用 `aria2` 1.5.2或者更高，则可以使用 `--rpc-user=<username> --rpc-passwd=<passwd>`，这样访问路径就是 `http://username:passwd@hostname:port/jsonrpc`

* 打开浏览器，访问`index.html`，可以通过复制url链接来下载文件，对于一些需要网站登陆才能下载的文件，例如，百度网盘，也可以很好支持：

![结合yaaw前端使用aria2](https://3334459331-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LeFI0OlHH4bg0gqJ3hR%2F-M1T9_Bfe6KWQGInkWGi%2F-M1TADXZXWv6LYFb_aO5%2Faria2_with_yaaw.png?generation=1583201772286437\&alt=media)

* 如果出现`Internal server error` 则修改 `JSON-RPC Path`

## 参考

* [YAAW README.md](https://github.com/binux/yaaw)
