Git Product home page Git Product logo

Comments (5)

answer24 avatar answer24 commented on June 29, 2024 2

研究了下,已经设置.

//删除时区

rm -rf /etc/localtime

//设置**时区,成功后输入date,查看是否和电脑时间一致。

ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

//安装crontabs服务

yum -y install crontabs

//设置19:00开启net_speeder

echo '0 19 * * * root nohup /root/net_speeder venet0 "Your ip" >/dev/null 2>&1 &' >>/etc/crontab

//设置0:00关闭net_speeder

echo "0 0 * * * root killall net_speeder" >>/etc/crontab

from net-speeder.

snooda avatar snooda commented on June 29, 2024

高峰期和低峰期的判断标准是什么?
可以用crontab实现

from net-speeder.

Halry avatar Halry commented on June 29, 2024

用corntab,自己写个脚本好像就ok了

from net-speeder.

answer24 avatar answer24 commented on June 29, 2024

国内时间晚上6点以后到夜间2点这样吧,国内数据流量大的时间段开启。 其他时间感觉开启也没啥效果,而且服务端又占用2倍流量。

可以告知具体的corntab脚本吗?Linux命令完全不熟悉。

from net-speeder.

krizex avatar krizex commented on June 29, 2024

如果对Linux完全不熟悉的话,要教会你使用crontab挺困难的,毕竟你还会遇到crobtan环境变量的坑。。。google下shell脚本还有crontab,半天时间应该能搞定你的需求了。加油!

from net-speeder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.