找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 62539|回复: 36

Openwrt 路由 Aria2 脱机 离线 迅雷 BT PT 下载 配置文件 aria2.conf

 火.. [复制链接]
发表于 2013-2-4 19:01 | 显示全部楼层 |阅读模式
本帖最后由 edmondgavin 于 2013-2-6 18:01 编辑

启动方式采用配置文件的形式:$HOME/.aria2/aria2.conf

优点:迅雷、BT、PT都可以眉毛胡子一把抓。
缺点:PT上传速度慢,原因暂未知。
更新1:下载速度完全超出预期,但是PT上传很郁闷,13G的文件下载完,上传量还不到20M,这是肿么了?哪位高人指点一下啊~
更新2:重启后进度还在,但任务丢失。关键是上传速度实在太低,还没找到提高分享率的方法,放弃ARIA2,用回Transmission。


设备:WNDR3800
版本:OpenWrt Barrier Breaker r35416 / LuCI Trunk (trunk+svn9663)

首先进入路由器luci界面里安装aria2,目前最新是1.16.0-1(trunk),安装完毕后程序文件目录为: /usr/bin/aria2c
建立aria2.conf 文件,输入以下内容(也可下载附件):
-------------------------------------------------------------------
#Aria2 configuration

# RPC Setting
#
enable-rpc=true
rpc-listen-all=true
rpc-allow-origin-all=true
rpc-listen-port=6800
#rpc-user=rpc_user
#rpc-passwd=rpc_passwd


# General Setting
#
dir=/mnt/sda1/download/aria2
input-file=/mnt/sda1/aria2/aria2.session
save-session=/mnt/sda1/aria2/aria2.session
save-session-interval=60
log=/mnt/sda1/aria2/aria2.log
log-level=warn
#event-poll=select
disk-cache=8M
#enable-mmap=true
file-allocation=trunc
peer-id-prefix=-UT2210-
user-agent=uTorrent/2210(25130)

# Connection Setting
#
continue=true
max-connection-per-server=5
max-concurrent-downloads=3
min-split-size=1M
split=5
max-overall-download-limit=0
max-overall-upload-limit=50K
max-upload-limit=20
lowest-speed-limit=20K
auto-save-interval=120
check-certificate=false

# BT/PT Setting
#
bt-require-crypto=true
bt-max-peers=300
enable-peer-exchange=true
bt-enable-lpd=true
enable-dht=true
listen-port=48028
dht-listen-port=48028
follow-torrent=true
force-save=true
bt-seed-unverified=true
bt-save-metadata=true
bt-hash-check-seed=true
bt-remove-unselected-file=false
bt-stop-timeout=900
seed-ratio=1
seed-time=525600
------------------------------------------------------------------
aria2.conf 文件内的红色字体内容根据实际情况进行修改。将设置好的aria2.conf 文件拷贝到路由器 /etc 目录下。

其中,aria2.session是记录下载进度的文件, 需要事先建立;假设按照上面的路径,需要在终端输入
cd /mnt/sda1/aria2
touch aria2.session

以上步骤完成,就可以在终端输入以下命令后台运行了。
/usr/bin/aria2c --conf-path=/etc/aria2.conf -D



参考文档:
http://blog.binux.me/2012/12/aria2-examples/
http://aria2.sourceforge.net/manual/en/html/aria2c.html#example

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 1恩山币 +1 收起 理由
jzmno1 + 1 你限制了上传速度分享率设置为1,还设置了分享时间。

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2013-2-5 11:39 | 显示全部楼层
{:soso_e179:} 好东西 有端口号就好限速了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-2-5 13:03 | 显示全部楼层
这两行有什么用处呢
log=/mnt/sda1/aria2/aria2.log
log-level=warn
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2013-2-5 16:51 来自手机 | 显示全部楼层
liushuijie 发表于 2013-2-5 13:03
这两行有什么用处呢
log=/mnt/sda1/aria2/aria2.log
log-level=warn

第一行是日志的存放目录,第二行是日志等级。如果PT下载出错或有警告内容都会存放在这个日志里。当然不要也没关系。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-2-27 18:45 | 显示全部楼层
buffalo可以用吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-12 06:50 | 显示全部楼层
华为hg255d不知可否能用
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-3-17 16:39 | 显示全部楼层
谢谢分享!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-1 21:04 | 显示全部楼层
谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-4-5 18:42 | 显示全部楼层
不行啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-6-11 23:12 | 显示全部楼层
max-concurrent-downloads=5
continue=true
max-connection-per-server=5
min-split-size=10M
split=10
max-overall-download-limit=0
max-upload-limit=0
max-overall-upload-limit=0
#max-upload-limit=0
max-download-limit=0
lowest-speed-limit=0
input-file=/opt/etc/aria2/aria2.session
save-session=/opt/etc/aria2/aria2.session
save-session-interval=20
dir=/tmp/usbmounts/sda3
file-allocation=none
disk-cache=8M
continue=true
force-save=true
enable-dht=false
bt-enable-lpd=false
user-agent=uTorrent/2210(25130)
peer-id-prefix=-UT2210-
seed-ratio=0
force-save=true
bt-hash-check-seed=true
bt-seed-unverified=true
bt-save-metadata=true
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
rpc-listen-port=6800
enable-peer-exchange=false
follow-torrent=true
#listen-port=6881-6999
bt-require-crypto=true
混pt的设置,混pt要保证上传量的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-7-31 12:17 | 显示全部楼层
好东西 有端口号就好限速了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-9-25 20:33 | 显示全部楼层
好复杂啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2013-10-14 07:19 | 显示全部楼层
jzmno1 发表于 2013-6-11 23:12
max-concurrent-downloads=5
continue=true
max-connection-per-server=5

试试看这个配置文件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-4-27 23:44 | 显示全部楼层
现在的版本好像bt不支持了?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-11-11 14:04 | 显示全部楼层
因aria2从1.18.5版本后默认设置不支持BT,所有最好下载然后用winscp复制进去然后安装,不要直接opkg install安装。
aria2脱机下载
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 10:27

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表