为 aria2 下载加速,添加这些 trackers 之后, BT、磁力链接下载加速大增 - 小众软件


为 aria2 下载加速,添加这些 trackers 之后, BT、磁力链接下载加速大增

6
(2 votes)
.
on 2018/12/17 19:49:03.

aria2 是一款非常流行的开源下载工具,可以用来下载各种协议文件,包括 BT 种子与磁力链接,但很多人在初次使用 aria2 时会发现始终无速度的问题,这里有一份 trackers 列表,只需要添加进 aria2 就能明显的提高下载速度。@Appinn

这是一份在 GitHub 上的 trackers 列表,有好几种类别:

  • http
  • https
  • udp
  • ws

以及还有一个 best 分类:

一般情况下,添加 best 就好了,如果不嫌多,那么添加 all 全部也是不错的。

添加方法:打开 aria2 的配置文件 aria2.conf,然后在最后面添加一行:

bt-tracker=服务器1,服务器2,服务器2

比如青小蛙从 best 里找出前三个服务器,就是这样:

最后将 aria2.conf 保存起来,重新运行 aria2 就行了。

附 best 列表:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

已有 6 条评论, 我要留言

  1. Oscar说道:

    不如写一个脚本
    tracker=$(curl -s -L ‘https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt’ | sed ‘/^\s*$/d’ | tee ~/.aria2/tracker | tr ‘\n’ ‘,’)
    sed -i "s@^\(bt-tracker=\).*@\1${tracker}@" ~/.aria2/aria2.conf
    然后交给crontab自动运行

  2. Parsifal说道:

    之前发过的懒人包 AriaNg可以用这个配置吗?

  3. LuticLiu说道:

    已经用了快一年了,之前写了个bat用sed来更新tracker的,我看看整理下之后发到评论里。

  4. LuticLiu说道:

    :: Aria2 更新 Trackers
    @echo off

    ::此 Bat 需要放置在 aria2 的所在文件夹下
    ::本 Bat 需要使用 sed,sed需放置在aria2所在文件夹下。
    ::sed 可以在 "https://sourceforge.net/projects/gnuwin32/files/sed/4.2.1/sed-4.2.1-bin.zip/download" 下载

    ::设置当前的aria2配置文件的名称,如配置在子文件夹下,请自行修改。
    set conf=aria2n.conf

    ::设置选择的 trackerlist (可选 trackers_all.txt trackers_best.txt trackers_all_ip.txt trackers_best_ip.txt)
    set trackerfile=trackers_all.txt
    set downloadfile=https://raw.githubusercontent.com/ngosang/trackerslist/master/%trackerfile%

    :: 删除可能之前存在的残留文件
    del %temp%\tracker*.*
    del %temp%\aria*.*

    ::下载 trackerlist
    aria2c.exe –dir=%temp% "%downloadfile%"

    ::用 sed 整理 trackerlist 格式
    sed.exe ":a;N;s/\n/ /; ta;" %temp%\%trackerfile% > %temp%\trackerstemp.txt
    sed.exe "1s/^/bt-tracker=/g; s/ /,/g; s/ $//;" %temp%\trackerstemp.txt > %temp%\trackers.txt

    ::删除当前 aria2 配置 中的 trackerlist
    sed.exe "/^bt-tracker=/d" %conf% > %temp%\aria2n.conf

    ::合并 trackerlist 和 aria2 配置
    copy %temp%\aria2n.conf + %temp%\trackers.txt %temp%\aria2bt.txt
    sed.exe "$d" %temp%\aria2bt.txt > %conf%

    :: 删除残留的临时文件
    del %temp%\tracker*.*
    del %temp%\aria*.*
    exit

  5. ff说道:

    好东西。谢谢蛤蟆

有不同想法?说说看(首次评论会被人工审核,请耐心等待)

姓名*

邮箱*

网址

有人回复时邮件通知我

comments powered by Disqus