安装Aria2
opkg update
opkg install aria2
aria2c -v
安装成功后会打印以下信息
aria2 version 1.33.0
Copyright (C) 2006, 2017 Tatsuhiro Tsujikawa
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
** Configuration **
Enabled Features: BitTorrent, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.11 libxml2/2.9.7 OpenSSL/1.0.2n libssh2/1.7.0
Compiler: gcc 6.3.0
built by x86_64-pc-linux-gnu
targeting x86_64-openwrt-linux-gnu
on Jan 11 2018 07:55:53
System: Linux 4.14.24-qnap #1 SMP Fri Feb 14 09:52:34 CST 2020 x86_64
Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/
By default, Aria2 is configured to start as a daemon, download any content to /opt/var/aria2/torrents, listen RPC control port 6800, which can be accessed with Passw0rd token. You can change this settings in /opt/etc/aria2.conf if necessary.
修改配置
vim /opt/etc/aria2.conf
配置文件说明
1 | ## 文件保存相关 ## |
启动
/opt/etc/init.d/S81aria2 start
关闭
/opt/etc/init.d/S81aria2 stop
下载文件
aria2c xxx -d dir
如果下载遇到以下错误:
[SocketCore.cc:1015] errorCode=1 SSL/TLS handshake failure: unable to get local issuer certificate
请安装以下软件:
opkg install ca-certificates
安装WebUI
Aria2 WebUI by @ziahamza
YAAW WebUI by @binux
下载Aria2 WebUI,然后解压到Web目录,文件夹命名为aria2,然后访问 http://xxx.xxx.xxx.xxx/aria2 即可