美文网首页Linux
wondershaper:一个linux限制下载和上传的小工具

wondershaper:一个linux限制下载和上传的小工具

作者: SteveGuRen | 来源:发表于2019-08-08 20:08 被阅读0次

wondershaper限速工具

这个工具叫wondershaper,是通过限制某个网卡的速度来限制总体的带宽速度。
下载地址:https://github.com/magnific0/wondershaper

1,下载可以用下面的命令

git clone  https://github.com/magnific0/wondershaper.git

2,下载完之后,直接切换到wondershaper目录

cd wondershaper

3,可以用一下命令查看如何使用

./wondershaper -h

4,常用命令汇总

//查看网卡列表
ip addr show
//对网卡列表上面的wlp4s0网卡进行限速
./wondershaper -a wlp4s0 -u 4096 -d 8192
//解除网卡的限制速度
wondershaper -c -a <adapter>

彩蛋:

目前多数程序可以跑在容器上或者虚拟机上,结合这两种技术可以限制某个运行中的进程的速度。例如,限制某个下载进程的速度,这个下载进程可以通过容器运行,然后这个容器限制一下也使用这个工具

相关文章

网友评论

    本文标题:wondershaper:一个linux限制下载和上传的小工具

    本文链接:https://www.haomeiwen.com/subject/hjufjctx.html