找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2057|回复: 8

请教aria2 如何开启根据时间的限速?

[复制链接]
环境:OpenWrt R21.2.1 GDQ v3.1[2021] Compiled by eSir / LuCI Master (git-21.035.34289-13f96d1)
用系统内的aria2已经可以正常下载
如何设置
每天08.00-20.00限速1m ,其余时间不限速 , 或者限速100m? 谢谢
我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
如果不能用限速来设置,能不能设置
每天20.00自动启动aria2, 第二天08.00自动关闭aria2
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

限速不知道,定时启动关闭可以用cron,关闭时直接kill

点评

30 23 * * * /etc/init.d/aria2 start00 09 * * * /etc/init.d/aria2 stop 网上搜到的. 可以这样用吗? init.d这个路径不是很理解  详情 回复 发表于 2021-3-15 22:06
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
twf1234 发表于 2021-3-15 17:47
限速不知道,定时启动关闭可以用cron,关闭时直接kill

30 23 * * * /etc/init.d/aria2 start00 09 * * * /etc/init.d/aria2 stop
网上搜到的.  可以这样用吗?
init.d这个路径不是很理解

点评

差不多就是这样 init.d是装好aria2后启动脚本的默认位置,一般用ipk安装就会在这里有启动脚本 如果是不是安装,是直接复制的aria2执行文件就没有  详情 回复 发表于 2021-3-16 17:18
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

nicholas_guo 发表于 2021-3-15 22:06
30 23 * * * /etc/init.d/aria2 start00 09 * * * /etc/init.d/aria2 stop
网上搜到的.  可以这样用吗?  ...

差不多就是这样
init.d是装好aria2后启动脚本的默认位置,一般用ipk安装就会在这里有启动脚本
如果是不是安装,是直接复制的aria2执行文件就没有
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

限速脚本,保存为sh,给执行权限,用定时任务执行就行了
  1. curl http://127.0.0.1:6800/jsonrpc -H "Content-Type: application/json" -H "Accept: application/json" --data '{"jsonrpc":"2.0","id":1,"method":"aria2.changeGlobalOption","params":[{"max-overall-download-limit":"2M","max-overall-upload-limit":"100K"}]}'
复制代码

点评

感谢 。。。。  详情 回复 发表于 2021-3-19 11:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

取消限速
  1. curl http://127.0.0.1:6800/jsonrpc -H "Content-Type: application/json" -H "Accept: application/json" --data '{"jsonrpc":"2.0","id":1,"method":"aria2.changeGlobalOption","params":[{"max-overall-download-limit":"0","max-overall-upload-limit":"0"}]}'
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
lcsuper 发表于 2021-3-19 10:48
限速脚本,保存为sh,给执行权限,用定时任务执行就行了

感谢  。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

你这个固件能分享下吗?或者发个地址。。。网上找不到。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 16:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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