Skip to content

aelennb/Server-traffic-consumption-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Server-traffic-consumption-script

服务器流量消耗脚本

测试系统为Debian12.13

添加了对Alpine系统的支持(仅做了简单适配)

使用方法:

1.获取网卡名称

ip addr

2.安装Aria2

Debian:sudo apt install aria2

Alpine:sudo apk add aria2

3.下载脚本

curl -O https://raw.githubusercontent.com/aelennb/Server-traffic-consumption-script/refs/heads/main/download.sh

4.修改配置

4.1编辑download.sh

Debian:nano download.sh

Alpine:vi download.sh

4.2修改大文件URL

4.3修改网卡名称

4.2保存配置

Ctrl+O 保存 Ctrl+X 退出

5.赋予执行权限

chmod +x download.sh

6.执行脚本

./download.sh

此脚本支持带参数执行

./download.sh [$(MB)]

image

About

服务器流量消耗脚本

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages