镜像域名: doub.bid 提供给无翻墙能力的人使用,请大家互相通知~~ 有能力的建议访问 doub,io!
投稿文章 | 广告投放 | 交流群:Telegram

一个支持 离线下载/BT/磁力链接 的Aria2在线管理面板 —— Aria2 WebUI

碉堡网站 Toyo 46评论
文章目录
[显示]
本文最后更新于 2017年4月21日 19:13 可能会因为没有更新而失效。如已失效或需要修正,请留言!

Aria2是一个命令行下运行、多协议、多来源下载工具,支持迅雷磁力链接、BT种子、HTTP、FTP等下载协议,当然了它是命令行下载工具我们想下载一个东西还需要去敲命令自然是不方便,但是现在有人开发了一个WebUI,可以直接在网页上面添加管理任务。


界面截图

声明:本文章仅提供 BT/磁力链接 下载工具的安装方法和说明,任何使用此工具 下载版权侵权文件或导致任何经济损失,皆和本人无任何关系!如果你不同意或有异议,请关闭这个网页!

配置环境

教程测试环境是:Debian 7

这个Aria2 WebUI是一个 Web面板 + Aria2c后端 组成的。

安装 Aria2(后端/服务端)

首先是安装 aria2 后端。

apt-get install aria2 git -y
# 创建Aria2配置文件夹
mkdir /root/.aria2 && cd /root/.aria2
# 下载Aria2配置文件、DHT文件(BT有没有速度就靠这个)
wget --no-check-certificate https://softs.pw/Other/Aria2/aria2.conf
wget --no-check-certificate https://softs.pw/Other/Aria2/dht.dat
# 创建一个空的 Aria2 下载任务保存文件
echo '' > /root/.aria2/aria2.session

默认我已经配置好了 Aria2的配置文件,如果你想要修改,那么你可以输入 vi /root/.aria2/aria2.conf 或者 把这个文件下载到本地修改(有中文注释,# 井号是注释的,不懂的参数不要乱动,默认就好)。

主要就是下面这两个选项:下载目录(dir)、RPC监听端口(rpc-listen-port)、RPC令牌(rpc-secret),默认是下面这样:

下载目录:dir=/usr/local/caddy/www/aria2/Download

RPC监听端口:rpc-listen-port=6800 (默认#注释)

RPC令牌:rpc-secret=doub.io (如果不需要,则修改配置文件在参数前面加上 # 注释即可)

RPC令牌就相当于 Aria2(后端/服务端)远程API连接的授权密码,默认是开启的PRC令牌是 doub.io

正式使用建议更改 PRC监听端口和令牌 ,避免安全隐患!

Aria2(后端/服务端) 使用方法

启动 Aria2(后端/服务端)

nohup aria2c -c > /root/.aria2/aria2.log 2>&1 &

如果使用 nohup 进程无法后台运行或者其他问题,请展开查看更多

停止 Aria2(后端/服务端)

kill -9 $(ps -ef|grep "aria2c"|grep -v "grep"|awk '{print $2}')

重启就是先停止后启动喽~

查看 Aria2输出的日志

tail -f /root/.aria2/aria2.log

这个命令是监控 日志输出,如果想要退出监控,那么按 Ctrl+C 键即可。

安装 Aria2 WebUI前端

Aria2 WebUI 前端 Github地址:https://github.com/ziahamza/webui-aria2

这里安装 Caddy 一个很简单的HTTP服务器,如果你想要使用Nginx/Apache或者LNMP一键包之类的,使用方法自行谷歌。

wget -N --no-check-certificate https://softs.pw/Bash/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager

# 如果上面这个脚本无法下载,尝试使用备用下载:
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager

安装Caddy成功后,继续新建并进入虚拟主机文件夹下载安装前端,

mkdir /usr/local/caddy/www && mkdir /usr/local/caddy/www/aria2 && mkdir /usr/local/caddy/www/aria2/Download
cd /usr/local/caddy/www/aria2

git clone https://github.com/ziahamza/webui-aria2.git
mv webui-aria2/* .
rm -rf webui-aria2

chmod -R 755 /usr/local/caddy/www/aria2

写入配置到 Caddy 配置文件,注意下面这五行要一起复制粘贴,不是一行一行复制!

echo ":80 {
 root /usr/local/caddy/www/aria2
 timeouts none
 gzip
 browse
}" > /usr/local/caddy/Caddyfile

上面代码都执行完后,就可以启动 Caddy了。

service caddy start

如果Caddy 运行正常,那么你打开 http://vps_ip 即可看到 Aria2 WebUI的页面了。

配置前端

没有设置这个或者登录进去后,需要设置 连接设置

点击顶部菜单栏 设置——连接设置

主机选项,填写Aria2后端所在的服务器的IP或域名。

端口选项,默认 6800 。

密码令牌,如果你没有更改 Aria2配置文件中的内容,那么就是 doub.io

最后的直接下载选项,就是填写相对路径: /Download/ 

最后点击下面的 保存连接设置 按钮,不出意外就会提示连接成功,当然有时候还是会提示失败,多刷新几次就好了。


这时候你就可以添加下载任务了。

下载完成后,如果你在 连接设置 中设置的直接下载的相对路径正确,那你直接点击下面的文件名就可以下载到本地了。

当然因为 html5的支持,一些视频文件可以在线播放。

所以就实现了,离线下载视频,并在线观看!

实现网盘式操作

Caddy自带的目录列表功能很简陋,不能 新建/重命名/移动/删除 文件/文件夹等操作,所以可以使用 Caddy的 FileManager 扩展。

参考使用方法看这里

注意:2017/03/23 17:50 之前通过本教程安装的Caddy,皆没有这个扩展,需要卸载重装!

注意事项

Aria2 WebUI前端面板并不会保存任何设置,所有设置都是 从 Aria2(后端/服务端)的启动参数或者配置文件中获取的。

启动显示成功,但是实际未运行

因为 服务脚本判断的问题,只判断了nohub是否运行 Caddy成功,但没有判断 Caddy 是否保持正常运行。

你可以理解为,nohub成功启动了 Caddy,但是 Caddy因为配置文件错误等原因,启动后又退出了。

所以这种情况下,你应该去查看启动日志:

tail -f /tmp/caddy.log

Caddy启动失败,打开 http://ip 显示的是 It works !

一些系统会自带 apache2 ,而 apache2 会占用80端口,导致Caddy无法绑定端口,所以只要关掉就好了。

netstat -lntp
# 我们可以通过这个命令查看是不是被其他软件占用了 80 端口。

不过 apache2 会默认开机自启动,如果不需要可以关闭自启动或者卸载 apache2 。

停止 Apache2

service apache2 stop
# 尝试使用上面这个关闭,如果没效果或者提示什么错误无法关闭,那就用下面这个强行关闭进程。
kill -9 $(ps -ef|grep "apache2"|grep -v "grep"|awk '{print $2}')

取消开机自启动

下面这些命令仅限 Debian/Ubuntu 系统可用。

update-rc.d -f apache2 remove

卸载 Apache2

apt-get remove --purge apache2

关闭 Apache2后,就可以尝试启动 Caddy ,并试试能不能打开网页。

service caddy start

Aria2(后端/服务端)启动成功,但是 Aria2 WebUI 无法连接

这个可能是防火墙的问题,开放防火墙端口即可。

需要开放两个端口,一个是RPC监听端口 6800(默认),一个是BT监听端口 51413(默认)

不清楚端口的话,可以打开配置文件去 vi /root/.aria2/aria2.conf ,或者查看本地端口监听情况 netstat -lntp

iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 端口 -j ACCEPT
iptables -I INPUT -m state --state NEW -m udp -p udp --dport 端口 -j ACCEPT

# 删除防火墙规则,内容一样把 -I 换成 -D 就行了:
iptables -D INPUT -m state --state NEW -m tcp -p tcp --dport 端口 -j ACCEPT
iptables -D INPUT -m state --state NEW -m udp -p udp --dport 端口 -j ACCEPT

关于版权问题,大部分地区是禁止下载BT和盗版文件的

大部分IDC都是对版权文件敏感,特别是美国的VPS,当你下载BT和磁力链接文件的时候,很有可能会被封VPS。

所以请自行选择 版权文件不敏感的 瑞典 乌克兰 俄罗斯 罗马尼亚 地区的IDC的VPS。


其他的支持离线下载 BT和磁力链接的教程:https://doub.io/all-one/#BT、磁力链接下载 相关教程

转载请超链接注明:逗比根据地 » 一个支持 离线下载/BT/磁力链接 的Aria2在线管理面板 —— Aria2 WebUI
责任声明:本站一切资源均原创或收集自互联网,仅作交流学习之用,请勿用作商业!如造成任何后果,本站概不负责!

赞 (23)or打赏
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(46)个小伙伴在吐槽
  1. 逗比,你写的时候后端参数的令牌默认是doub. io了,教程上面还是doub.bid 来反馈一下 :lol: 刚才打的是 d o u b . i o,发出去就又变成.bid了。。。。还不能取消
    sejin2017-04-22 09:37 回复
    • 正常,你访问的是镜像域名 doub.bid,镜像会强行把 doub.io 替换为 doub.bid ,所以尽量还是挂代理用 doub.io 来访问。
      Toyo2017-04-22 10:15 回复
  2. 逗比,你写的时候后端参数的令牌默认是doub.io了,教程上面还是doub.bid 来反馈一下 :lol:
    sejin2017-04-22 09:35 回复
  3. 怎么样才能让aria2开机自启动?我添加了nohup aria2c -c &>/root/.aria2/aria2.log &到开机启动的脚本并没有用
    MLab2017-04-01 20:37 回复
  4. 偷油博主,CentOS系最好加上这条 避免各种恶心错误 yum install -y gcc gcc-c++ kernel-devel libgcrypt-devel libxml2-devel openssl-devel gettext-devel cppunit
    VIVO美图2017-03-29 11:06 回复
  5. 你好,站长。我准备安装这个版本的。openvz,debian7-x64,系统自带有apache,然后我安装web-ui时通过vps_ip进入是空白页面,请问怎么解决?
    Lao2017-03-19 17:26 回复
    • 这个教程已经废弃,请看新教程,我已经在哪个评论里告诉你了,跳过第一个添加 软件包源的步骤,直接安装Aria2就行了。
      Toyo2017-03-19 17:37 回复
      • 你好。按照新教程安装了aria2后端,然后分别安装了webui-aria2和ariang,因为是老版本所以就换回了webui-aria。发现一个问题。用nohup aria2c -c &>/root/.aria2/aria2.log &启动,很快aria2就会被杀掉,用netstat -lntp,刚启动后端时能够看到aria2的端口,过几分钟在看就没有了,前端也显示连接不成功。然后我执行aria2c --conf-path=/root/.aria2/aria2.conf,这样的话就可以正常使用了。
        Lao2017-03-20 00:24 回复
        • 直接 aria2c 启动是前台启动,关闭SSH后,就挂了,nohup是挂到后台用的。
          文章里更新了 screen 的启动方式,你可以试试。
          Toyo2017-03-20 01:26 回复
  6. 多谢! AriaNg倒是搭建好了并且能够离线下载了,那么怎么用http下载到本地呢? 看过您的另一篇文章“Linux开放HTTP服务并下载文件到本地 以测试 VPS回程速度”,里面提到安装了caddy就行,但是这个也是基于caddy的,在浏览器输入域名/IP之后跳转到了AriaNg而非VPS上的文件了呀。
    godstick2017-03-14 21:51 回复
  7. 在线播放的的链接的download后面少了一个"/"导致不能播放,更换下载目录,还是http://域名/download
    Firw2017-03-06 16:40 回复
  8. 感谢toyo大大的教程,但小白的我有几点疑问 1、你说直接下载路径,说实在我填了是下不了,最终发现我nginx没有开放下载,然而身为nginx苦手的我不知道怎么开,只好借用多线程simplehttp开放端口下载。不知道你可否乐意教下,主要想在线观看(simple貌似不能在线观看) 2、不知道你有没有用过ariang,想听下你对这前端的看法 再次感谢
    kurokutomoko2017-02-28 19:01 回复
    • nginx没有开放下载是什么鬼。。。
      ariang我用过,挺好的,或许什么时候我会写一个这个教程的重置版,这个教程目前似乎问题很多。
      Toyo2017-02-28 22:02 回复
      • 如果直接填写直接下载相对路径的话,会出现404 无法下载,当时因这个而十分苦恼 不过看到你打算重写教程,我感到十分kai x
        kurokutomoko2017-02-28 23:27 回复
  9. 站长,按照教程安装的版本是1.15.1,怎么更新到最新版?apt-get说是最新版了
    Lao2017-02-16 18:39 回复
    • 站长,你好。自己下载源码安装出现错误。 Linux debian 4.9.10-040910-generic #201702141931 SMP Wed Feb 15 00:33:24 UTC 2017 x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Feb 16 19:02:47 2017 from 182.150.160.115 root@debian:~# cd ar root@debian:~/ar# cd aira2-1.31.0 -bash: cd: aira2-1.31.0: 没有那个文件或目录 root@debian:~/ar# cd aria2-1.31.0 root@debian:~/ar/aria2-1.31.0# ./configure checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for bison... bison -y checking dependency style of gcc... gcc3 checking for ar... (cached) ar checking for sphinx-build... no checking for rst2html.py... no checking for rst2html... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.20... yes checking whether g++ supports C++11 features by default... no checking whether g++ supports C++11 features with -std=c++11 ... yes checking whether the c++ compiler supports nullptr... checking whether the C++ compiler supports `override` keyword... yes checking for CPPUNIT... yes checking for ZLIB... yes checking for gzbuffer... yes checking for gzsetparams... yes checking for LIBXML2... yes checking for SQLITE3... no configure: WARNING: No package 'sqlite3' found checking whether to enable Mac OS X native SSL/TLS... no checking for main in -lcrypt32... no checking for main in -lsecur32... no checking for main in -ladvapi32... no checking for wincrypt.h... no checking for security.h... no checking for LIBGNUTLS... yes checking for gnutls_certificate_set_x509_system_trust... no checking for LIBNETTLE... no checking for libgcrypt-config... /usr/bin/libgcrypt-config checking for LIBGCRYPT - version >= 1.2.4... yes (1.5.0) checking for LIBSSH2... yes checking for LIBCARES... yes checking for ares_addr_node... yes checking for ares_set_servers... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for ANSI C header files... (cached) yes checking argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking for inttypes.h... (cached) yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking port.h usability... no checking port.h presence... no checking for port.h... no checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking stdio_ext.h usability... yes checking stdio_ext.h presence... yes checking for stdio_ext.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking ifaddrs.h usability... yes checking ifaddrs.h presence... yes checking for ifaddrs.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for int16_t... yes checking for int32_t... yes checking for int64_t... yes checking for int8_t... yes checking for mode_t... yes checking for off_t... yes checking for size_t... (cached) yes checking for ssize_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for pid_t... yes checking for working volatile... yes checking for ptrdiff_t... yes checking for struct timespec... yes checking whether byte ordering is bigendian... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by GCC... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for error_at_line... yes checking whether gcc needs -traditional... no checking for working memcmp... yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for alarm... yes checking for working mktime... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for strftime... yes checking for vprintf... yes checking for _doprnt... no checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for working strtod... yes checking for __argz_count... yes checking for __argz_next... yes checking for __argz_stringify... yes checking for atexit... yes checking for ftruncate... yes checking for getcwd... yes checking for gethostbyaddr... yes checking for gethostbyname... yes checking for getifaddrs... yes checking for getpagesize... yes checking for getrandom... no checking for memchr... yes checking for memmove... yes checking for mempcpy... yes checking for memset... yes checking for mkdir... yes checking for mmap... yes checking for munmap... yes checking for nl_langinfo... yes checking for posix_fadvise... yes checking for posix_memalign... yes checking for pow... yes checking for putenv... yes checking for rmdir... yes checking for select... yes checking for setlocale... yes checking for sigaction... yes checking for sleep... yes checking for socket... yes checking for stpcpy... yes checking for strcasecmp... yes checking for strchr... yes checking for strcspn... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strstr... yes checking for strtol... yes checking for strtoul... yes checking for strtoull... yes checking for tzset... yes checking for unsetenv... yes checking for usleep... yes checking for utime... yes checking for utimes... yes checking for getrandom linux syscall interface... no checking for epoll_create... yes checking for posix_fallocate... yes checking for fallocate... yes checking for asctime_r... yes checking for localtime_r... yes checking for basename... yes checking for gai_strerror... yes checking for getaddrinfo... yes checking for gettimeofday... yes checking for strptime... yes checking for daemon... yes checking for poll... yes checking for timegm... yes checking for port_associate... no checking for kqueue... no checking for struct sockaddr_in.sin_len... no checking for struct sockaddr_in6.sin6_len... no checking whether struct option.name is assignable from const char*... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/libaria2.pc config.status: creating src/includes/Makefile config.status: creating test/Makefile config.status: creating po/Makefile.in config.status: creating lib/Makefile config.status: creating doc/Makefile config.status: creating doc/manual-src/Makefile config.status: creating doc/manual-src/en/Makefile config.status: creating doc/manual-src/en/conf.py config.status: creating doc/manual-src/ru/Makefile config.status: creating doc/manual-src/ru/conf.py config.status: creating doc/manual-src/pt/Makefile config.status: creating doc/manual-src/pt/conf.py config.status: creating deps/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile === configuring in deps/wslay (/root/ar/aria2-1.31.0/deps/wslay) configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... gawk checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking dependency style of g++... gcc3 checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.20... yes checking for sphinx-build... no checking for NETTLE... no checking for CU_initialize_registry in -lcunit... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for size_t... yes checking for ssize_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ptrdiff_t... yes checking whether byte ordering is bigendian... no checking for memmove... yes checking for memset... yes checking for ntohl... yes checking for ntohs... yes checking for htons... yes configure: creating ./config.status config.status: creating Makefile config.status: creating lib/Makefile config.status: creating lib/libwslay.pc config.status: creating lib/includes/Makefile config.status: creating lib/includes/wslay/wslayver.h config.status: creating tests/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands config.status: executing depfiles commands configure: summary of build options: version: 1.0.1-DEV shared 0:1:0 Host type: x86_64-pc-linux-gnu Install prefix: /usr/local C compiler: gcc CFlags: -g -O2 Library types: Shared=yes, Static=yes CUnit: no Nettle: no Build examples: no configure: summary of build options: Build: x86_64-pc-linux-gnu Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Install prefix: /usr/local CC: gcc CXX: g++ CPP: gcc -E CXXFLAGS: -g -O2 CFLAGS: -g -O2 CPPFLAGS: LDFLAGS: LIBS: DEFS: -DHAVE_CONFIG_H CXX1XCXXFLAGS: -std=c++11 EXTRACXXFLAGS: -pipe EXTRACFLAGS: -pipe EXTRACPPFLAGS: EXTRALDFLAGS: EXTRALIBS: WARNCXXFLAGS: LibUV: no (CFLAGS='' LIBS='') SQLite3: no (CFLAGS='' LIBS='') SSL Support: yes AppleTLS: no (LDFLAGS='') WinTLS: no (LIBS='') GnuTLS: yes (CFLAGS='-I/usr/include/p11-kit-1 ' LIBS='-lgnutls ') OpenSSL: no (CFLAGS='' LIBS='') CA Bundle: LibNettle: no (CFLAGS='' LIBS='') LibGmp: no (CFLAGS='' LIBS='') LibGcrypt: yes (CFLAGS='' LIBS='-L/lib/x86_64-linux-gnu -lgcrypt') LibXML2: yes (CFLAGS='-I/usr/include/libxml2 ' LIBS='-lxml2 ') LibExpat: no (CFLAGS='' LIBS='') LibCares: yes (CFLAGS=' ' LIBS='-lcares ') Zlib: yes (CFLAGS=' ' LIBS='-lz ') Libssh2: yes (CFLAGS=' ' LIBS='-Wl,-z,relro -lssh2 -lgcrypt ') Tcmalloc: no (CFLAGS='' LIBS='') Jemalloc: no (CFLAGS='' LIBS='') Epoll: yes Bittorrent: yes Metalink: yes XML-RPC: yes Message Digest: libgcrypt WebSocket: yes (CFLAGS='-I$(top_builddir)/deps/wslay/lib/includes -I$(top_srcdir)/deps/wslay/lib/includes' LIBS='$(top_builddir)/deps/wslay/lib/libwslay.la') Libaria2: no (shared=yes static=no) bash_completion dir: ${datarootdir}/doc/${PACKAGE_TARNAME}/bash_completion Static build: no root@debian:~/ar/aria2-1.31.0# make make all-recursive make[1]: Entering directory `/root/ar/aria2-1.31.0' Making all in po make[2]: Entering directory `/root/ar/aria2-1.31.0/po' make[2]: Leaving directory `/root/ar/aria2-1.31.0/po' Making all in lib make[2]: Entering directory `/root/ar/aria2-1.31.0/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/root/ar/aria2-1.31.0/lib' Making all in deps make[2]: Entering directory `/root/ar/aria2-1.31.0/deps' Making all in wslay make[3]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay' make all-recursive make[4]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay' Making all in lib make[5]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay/lib' Making all in includes make[6]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay/lib/includes' make[6]: Nothing to be done for `all'. make[6]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay/lib/includes' make[6]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay/lib' /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_frame.lo -MD -MP -MF .deps/wslay_frame.Tpo -c -o wslay_frame.lo wslay_frame.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_frame.lo -MD -MP -MF .deps/wslay_frame.Tpo -c wslay_frame.c -fPIC -DPIC -o .libs/wslay_frame.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_frame.lo -MD -MP -MF .deps/wslay_frame.Tpo -c wslay_frame.c -o wslay_frame.o >/dev/null 2>&1 mv -f .deps/wslay_frame.Tpo .deps/wslay_frame.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_event.lo -MD -MP -MF .deps/wslay_event.Tpo -c -o wslay_event.lo wslay_event.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_event.lo -MD -MP -MF .deps/wslay_event.Tpo -c wslay_event.c -fPIC -DPIC -o .libs/wslay_event.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_event.lo -MD -MP -MF .deps/wslay_event.Tpo -c wslay_event.c -o wslay_event.o >/dev/null 2>&1 mv -f .deps/wslay_event.Tpo .deps/wslay_event.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_queue.lo -MD -MP -MF .deps/wslay_queue.Tpo -c -o wslay_queue.lo wslay_queue.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_queue.lo -MD -MP -MF .deps/wslay_queue.Tpo -c wslay_queue.c -fPIC -DPIC -o .libs/wslay_queue.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_queue.lo -MD -MP -MF .deps/wslay_queue.Tpo -c wslay_queue.c -o wslay_queue.o >/dev/null 2>&1 mv -f .deps/wslay_queue.Tpo .deps/wslay_queue.Plo /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_net.lo -MD -MP -MF .deps/wslay_net.Tpo -c -o wslay_net.lo wslay_net.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_net.lo -MD -MP -MF .deps/wslay_net.Tpo -c wslay_net.c -fPIC -DPIC -o .libs/wslay_net.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DHAVE_CONFIG_H -I./includes -I./includes -Wall -g -O2 -MT wslay_net.lo -MD -MP -MF .deps/wslay_net.Tpo -c wslay_net.c -o wslay_net.o >/dev/null 2>&1 mv -f .deps/wslay_net.Tpo .deps/wslay_net.Plo /bin/bash ../libtool --tag=CC --mode=link gcc -Wall -g -O2 -no-undefined -version-info 0:1:0 -o libwslay.la wslay_frame.lo wslay_event.lo wslay_queue.lo wslay_net.lo libtool: warning: '-version-info/-version-number' is ignored for convenience libraries libtool: link: rm -fr .libs/libwslay.a .libs/libwslay.la libtool: link: ar cru .libs/libwslay.a .libs/wslay_frame.o .libs/wslay_event.o .libs/wslay_queue.o .libs/wslay_net.o libtool: link: ranlib .libs/libwslay.a libtool: link: ( cd ".libs" && rm -f "libwslay.la" && ln -s "../libwslay.la" "libwslay.la" ) make[6]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay/lib' make[5]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay/lib' Making all in tests make[5]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay/tests' make[5]: Nothing to be done for `all'. make[5]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay/tests' make[5]: Entering directory `/root/ar/aria2-1.31.0/deps/wslay' make[5]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay' make[4]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay' make[3]: Leaving directory `/root/ar/aria2-1.31.0/deps/wslay' make[3]: Entering directory `/root/ar/aria2-1.31.0/deps' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/root/ar/aria2-1.31.0/deps' make[2]: Leaving directory `/root/ar/aria2-1.31.0/deps' Making all in src make[2]: Entering directory `/root/ar/aria2-1.31.0/src' Making all in includes make[3]: Entering directory `/root/ar/aria2-1.31.0/src/includes' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/root/ar/aria2-1.31.0/src/includes' make[3]: Entering directory `/root/ar/aria2-1.31.0/src' CXX AbstractAuthResolver.lo In file included from AbstractAuthResolver.cc:35:0: AbstractAuthResolver.h:46:11: error: looser throw specifier for ‘virtual aria2::AbstractAuthResolver::~AbstractAuthResolver()’ In file included from AbstractAuthResolver.h:38:0, from AbstractAuthResolver.cc:35: AuthResolver.h:49:11: error: overriding ‘virtual aria2::AuthResolver::~AuthResolver() noexcept (true)’ make[3]: *** [AbstractAuthResolver.lo] 错误 1 make[3]: Leaving directory `/root/ar/aria2-1.31.0/src' make[2]: *** [all-recursive] 错误 1 make[2]: Leaving directory `/root/ar/aria2-1.31.0/src' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/root/ar/aria2-1.31.0' make: *** [all] 错误 2 root@debian:~/ar/aria2-1.31.0# 谷歌了一下看不明白。站长,你出个自动安装的吧
      Lao2017-02-16 19:17 回复
      • 编译安装,需要安装大量的支持库和依赖,看着就头疼。
        Toyo2017-02-16 19:53 回复
  10. 装完之后发现除了BT别的下载都有速度,BT一直是0,查了下好像都是有这个问题的,求解
    Araragi2017-02-10 13:19 回复
    • DTH问题,详细的我也不清楚,刚安装BT没有速度,都是DTH问题。
      Toyo2017-02-10 13:51 回复
      • 好像是我设置的不对,我在前端下了一个文件后却找不到download文件夹。但是这文件确实已经在机器里了,可以下载。而且这个aria2.conf文件也不在root目录里面..
        Araragi2017-02-10 16:48 回复
  11. 站长,把安转yaaw汉化版的教程也一并写了吧。这个ui我用uc浏览器访问显示乱码,uc云加速是关闭了的
    lao2017-02-06 15:11 回复
  12. 打开ip:6800输入完密码之后一片空白怎么办。 密码是对的
    saber2017-01-07 12:57 回复
  13. centos 安装过程中还是有很大的问题,没有详细的解决方案,Google了一下国外的朋友貌似说要自行编译。
    bogie2017-01-05 16:57 回复
    • 不清楚,不用centos,我只用debian/ubuntu。
      Toyo2017-01-05 18:34 回复
  14. 写一个windows下使用aria2的教程吧
    潜龙勿用2016-12-15 17:32 回复
    • 这个其实挺容易的,本来几个月前就打算上写的,只是我测试后发现,Aria2的DHT不行,下载BT和磁力链接要么解析不出来,要么下载速度非常慢,windows还是用迅雷这种 用户量大,DHT充足的工具吧。
      Toyo2016-12-15 19:32 回复
  15. 是不是失效了?为什么一步步的来,到了aria2c --enable-rpc --rpc-listen-all这一步就提示bash: aria2c: command not found,前端可以打开呀!
    你猜呀?2016-11-19 18:04 回复
    • aria2c 的安装有问题,我只在debian7 x64的系统上面测试过。
      Toyo2016-11-19 18:34 回复
      • 就是debina7 X64的系统
        你猜呀?2016-11-20 10:16 回复
  16. 为啥我点击下载好的文件文件名后会出现 404 not found
    eepldo2016-11-05 13:20 回复
    • 404是找不到文件,你去看看是不是下载到其他地方了。
      Toyo2016-11-05 14:40 回复
  17. windows怎么用啊
    Guangd2016-11-03 13:18 回复
  18. aria2c --enable-rpc --rpc-listen-all 这一句显示bash: aria2c: command not found
    hkfix2016-10-18 20:59 回复
    • 没有这个命令,说明安装出问题了。
      Toyo2016-10-18 22:19 回复
      • yum -y install aria2 显示Loaded plugins: fastestmirror, security Setting up Install Process Loading mirror speeds from cached hostfile No package aria2 available. Error: Nothing to do
        hkfix2016-10-19 21:57 回复
      • 已经更新过了YUM了
        hkfix2016-10-19 21:58 回复
  19. 有演示吗? 如果自己看估计可以,真实要分享给别人。分分钟崩溃吗?
    筑楼2016-10-15 14:06 回复
    • 没有链接后端,前端就是个壳,加上后端演示,分分钟版权投诉。
      Toyo2016-10-16 00:49 回复
  20. 博主,我是按照Nginx+aria2+Screen搭建的,但是我下载的mp4无法播放,点击一下就下载的信息收缩回去了.........,我该如何解决?
    Null2016-09-29 10:21 回复
  21. 我只想问下那个红蔷薇白玫瑰是不是只有封面一个图像的视频
    arimakousei2016-09-09 12:18 回复
  22. 为啥我尝试了很多次启动后端都失败
    hyk3132016-08-21 21:23 回复
  23. 其实我觉得可以顺便把https://github.com/meoow/aria2rpc里面的脚本使用方法也贴上去。。。。毕竟copy太烦了 可惜脚本有各种缺陷(比如文件名有时操蛋、flashgot不支持带""的参数、改ua麻烦 等等),不过大部分时候都挺好用的
    Phanes2016-08-21 14:10 回复
  24. 顶!d=====( ̄▽ ̄*)b
    20646055262016-08-19 16:55 回复