6

解决aria2下载速度慢

 2 years ago
source link: https://3mile.github.io/archives/2020/1023101950/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

解决aria2下载速度慢

2020-10-23

发布在

解决aria2下载速度慢

这个,经过反复研究,发现可能有两个问题 一个是BT监听端口没有打开,这样需要打开配置,看看你的监听端口是哪个: listen-port=60001 这个配置就是BT监听端口,另外还需要有各DHT监听端口,但是官方包里面的配置中没有配置这个端口,需要额外添加:如图

20201023102724-2020-10-23

,然后打开端口,在/etc/config/firewall 这个文件中添加:

config redirect
	option target 'DNAT'
	option src 'wan'
	option dest 'lan'
	option proto 'tcp udp'
	option dest_ip 'x.x.x.x'
	option name 'aria2'
	option src_dport '60001'
	option dest_port '60001'

,不过我是用已个端口,而且BT与DHT的监听端口一样,没发现异常 无速度,第二个问题是TRACKER失效,或者被墙,可添加额外的端口就可以: 至于在哪里找tracker,可在以下地方找,就选trackers_best_ip里面的即可,添加几个就行了: https://github.com/ngosang/trackerslist

20201023102757-2020-10-23

或者使用我的脚本,每天自动更新tracker

#!/bin/sh
wget -O /tmp/tracker.tmp --no-check-certificate https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best_ip.txt
a=`awk   'BEGIN {printf "option bt_tracker ""'\''"}  /:/{printf $1"," }' /tmp/tracker.tmp`
a=`echo ${a%,*}"'"`
sed  -i.bak "s/option bt_tracker .*$//" /etc/config/aria2
echo $a|tr -d '\n' >> /etc/config/aria2
/etc/init.d/aria2 restart
文章阅读量 1000000
Code -1: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc. [N/A GET https://us.avoscloud.com/1.1/classes/Comment]
Powered By Valine
v1.4.4

© 2020 By 3mile


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK