本文及资源最后更新时间 2021-05-28 by sky995
1) 请先看大神博客 自动PT工具参数调优
1.1) 自动PT autopt.sh 一键脚本 方便配置测试 goseeder.conf
- 短网址: https://git.io/autopt.sh
- 把工具制作成Docker容器,测试支持群晖NAS,可以使用
<code><span class="pln">wget git</span><span class="pun">.</span><span class="pln">io</span><span class="pun">/</span><span class="pln">autopt</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">&&</span><span class="pln"> bash autopt</span><span class="pun">.</span><span class="pln">sh </span><span class="com"># 群晖NAS使用如果不能访问外网 使用命令</span><span class="pln"> wget </span><span class="lit">262235.xyz</span><span class="pun">/</span><span class="pln">autopt</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">&&</span><span class="pln"> bash autopt</span><span class="pun">.</span><span class="pln">sh</span></code>
复制示例到Json工具网站编辑,保存上传 /root/goseeder.conf
<code><span class="pun">{</span> <span class="str">"dbserver"</span><span class="pun">:</span> <span class="str">"mongodb+srv://pt:passwd@cluster0.XXXX.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"</span><span class="pun">,</span> <span class="str">"node"</span><span class="pun">:</span> <span class="pun">[</span> <span class="pun">{</span> <span class="str">"source"</span><span class="pun">:</span> <span class="str">"pt.msg.vg"</span><span class="pun">,</span> <span class="str">"passkey"</span><span class="pun">:</span> <span class="str">"123456789-PASSKEY-PASSKEY-ABCDEF"</span><span class="pun">,</span> <span class="str">"limit"</span><span class="pun">:</span> <span class="lit">10</span><span class="pun">,</span> <span class="str">"enable"</span><span class="pun">:</span> <span class="kwd">true</span><span class="pun">,</span> <span class="str">"rule"</span><span class="pun">:</span> <span class="pun">{</span> <span class="str">"seeder_time"</span><span class="pun">:</span> <span class="lit">0</span><span class="pun">,</span> <span class="str">"seeder_ratio"</span><span class="pun">:</span> <span class="lit">0</span><span class="pun">,</span> <span class="str">"speed_limit"</span><span class="pun">:</span> <span class="lit">8.0</span> <span class="pun">}</span> <span class="pun">}</span> <span class="pun">],</span> <span class="str">"server"</span><span class="pun">:</span> <span class="pun">[</span> <span class="pun">{</span> <span class="str">"endpoint"</span><span class="pun">:</span> <span class="str">"http://192.168.1.222:8080"</span><span class="pun">,</span> <span class="str">"username"</span><span class="pun">:</span> <span class="str">"admin"</span><span class="pun">,</span> <span class="str">"password"</span><span class="pun">:</span> <span class="str">"adminadmin"</span><span class="pun">,</span> <span class="str">"remark"</span><span class="pun">:</span> <span class="str">"DISKSTATION"</span><span class="pun">,</span> <span class="str">"enable"</span><span class="pun">:</span> <span class="kwd">true</span><span class="pun">,</span> <span class="str">"rule"</span><span class="pun">:</span> <span class="pun">{</span> <span class="str">"concurrent_download"</span><span class="pun">:</span> <span class="lit">1</span><span class="pun">,</span> <span class="str">"disk_threshold"</span><span class="pun">:</span> <span class="lit">10.0</span><span class="pun">,</span> <span class="str">"disk_overcommit"</span><span class="pun">:</span> <span class="kwd">false</span><span class="pun">,</span> <span class="str">"max_speed"</span><span class="pun">:</span> <span class="lit">30.00</span><span class="pun">,</span> <span class="str">"min_alivetime"</span><span class="pun">:</span> <span class="lit">3600</span><span class="pun">,</span> <span class="str">"max_alivetime"</span><span class="pun">:</span> <span class="lit">86400</span><span class="pun">,</span> <span class="str">"min_tasksize"</span><span class="pun">:</span> <span class="lit">0.0</span><span class="pun">,</span> <span class="str">"max_tasksize"</span><span class="pun">:</span> <span class="lit">50.0</span><span class="pun">,</span> <span class="str">"max_disklatency"</span><span class="pun">:</span> <span class="lit">10000</span> <span class="pun">}</span> <span class="pun">}</span> <span class="pun">]</span> <span class="pun">}</span></code>
2) 运行 goseeder 自动PT
<code><span class="pln">docker run </span><span class="pun">-</span><span class="pln">d </span><span class="pun">--</span><span class="pln">name autopt \ </span><span class="pun">-</span><span class="pln">v </span><span class="pun">/</span><span class="pln">root</span><span class="pun">/</span><span class="pln">goseeder</span><span class="pun">.</span><span class="pln">conf</span><span class="pun">:</span><span class="str">/goseeder.conf \ hongwenjun/</span><span class="pln">autopt</span></code>
3) 查看QB服务器设置是否正常
<code><span class="pln">docker </span><span class="kwd">exec</span> <span class="pun">-</span><span class="pln">it autopt gostat</span></code>
4) 检查RSS推送信息是否正确
<code><span class="pln">docker logs autopt </span><span class="pun">|</span><span class="pln"> grep </span><span class="pun">-</span><span class="pln">e </span><span class="pun">种子</span> <span class="pun">-</span><span class="pln">e </span><span class="pun">磁盘</span></code>
5) 安装Docker可视化界面Portainer
<code><span class="pln">docker run </span><span class="pun">--</span><span class="pln">name </span><span class="typ">Portainer</span><span class="pln"> \ </span><span class="pun">--</span><span class="pln">restart</span><span class="pun">=</span><span class="pln">always </span><span class="pun">-</span><span class="pln">d </span><span class="pun">-</span><span class="pln">p </span><span class="lit">9000</span><span class="pun">:</span><span class="lit">9000</span><span class="pln"> \ </span><span class="pun">-</span><span class="pln">v </span><span class="pun">/</span><span class="kwd">var</span><span class="pun">/</span><span class="pln">run</span><span class="pun">/</span><span class="pln">docker</span><span class="pun">.</span><span class="pln">sock</span><span class="pun">:</span><span class="str">/var/</span><span class="pln">run</span><span class="pun">/</span><span class="pln">docker</span><span class="pun">.</span><span class="pln">sock \ </span><span class="pun">-</span><span class="pln">v </span><span class="pun">/</span><span class="pln">opt</span><span class="pun">/</span><span class="pln">portainer_data</span><span class="pun">:</span><span class="str">/data \ portainer/</span><span class="pln">portainer</span></code>
6) 使用Portainer 查看和修改比较方便
- 编辑 /root/goseeder.conf 后使用网页管理重启,或者命令
docker restart autopt
标签:没有标签
好人卡资源网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:原创: 群晖NAS能用的自动PT脚本-再也不用起早摸黑抢头香了 goseeder自动PT脚本
转载请注明原文链接:原创: 群晖NAS能用的自动PT脚本-再也不用起早摸黑抢头香了 goseeder自动PT脚本