logo NodeSeekbeta

求助:保持多大带宽可以一月消耗1T流量?

如题!
就是在服务器放个大文件(比如1G),维持一直循环下载。。。
避免超量,大概需要维持多大带宽,可以消耗1T每月流量?

用curl,有参数可以设置带宽的

« 12
  • 3m

  • 3m

  • 3Mbps

  • @gabcarwin #1 @東方不败 #2 @nhnhnh000 #3

    十分感谢!

  • 命令是啥,我拿我月抛的机器试试看

  • @xiaoht #5
    vi /root/speed.sh
    while :; do curl --limit-rate 3M -L -o /dev/null https://xxx.yyy.zzz/1G.test; sleep 5; done

    chmod +x /root/speed.sh

    crontab -e
    @reboot sleep 30 && /root/speed.sh

  • 我记得好像是30mbps

  • 或者wget -O /dev/null http://speedtest.tele2.net/1000GB.zip

  • xhj022

  • 1TB为例
    将下列命令添加到计划任务即可,周期为1分钟一次

    wget "https://speed.cloudflare.com/__down?during=download&bytes=25165824" -O demofile
    rm demofile
    

    也就是每分钟从CF下载一个24MB的文件,然后自动删除。可以根据需求,修改文件的大小,bytes=*

« 12

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有7827位seeker

🎉欢迎新用户🎉