手动限制VPS主机网络带宽的脚本:WonderShaper,避免触发限速规则
安装 wondershaper
curl -Lo /usr/sbin/wondershaper https://raw.githubusercontent.com/magnific0/wondershaper/master/wondershaper;
chmod +x /usr/sbin/wondershaper;
查询网卡
ifconfig # 大多数为 eth0
对网卡设置限速
wondershaper -a eth0 -d 5000 -u 2000 # 限制 下载 5Mbps, 上传 2Mbps
# wondershaper -a eth0 -d 90000 -u 90000 # 限制 下载 90Mbps, 上传 90Mbps
清楚网卡限速规则
wondershaper -c -a eth0
Tags : 本文未设置标签
所有原创文章采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可。
您可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。
本站部分内容收集于互联网,如果有侵权内容、不妥之处,请联系我们删除。敬请谅解!
Previous post
L2TP安装教程
Next post
docker释放磁盘空间