主题 测试技术 MySQL
* G r e a t S Q L 社 区 原 创 内 容 未 经 授 权 不 得 随 意 使 用 , 转 载 请 联 系 小 编 并 注 明 来 源 。
-
什么是WonderShaper
-
如何安装 W onderS haper
-
W onderS haper 使用帮助
-
W onderS haper 使用示例
-
查看网卡状态
-
限制网卡速度(单位Kbps)
-
取消限速
-
-
W onderS haper 在测试中的应用
-
网速单位转换
-
总结
1.什么是WonderShaper
W onderS haper 是用来对特定网卡进行快速限速的工具,它实际是对Linux的tc命令进行封装后的shell脚本,所以使用成本比tc更低,更容易上手,以下配合测速工具speedtest一起使用
2.如何安装WonderShaper
#直接拉取wondershaper,开箱即用
git clone https://github.com/magnific0/wondershaper.git
root@****-5491:/home/soft/wondershaper# ./wondershaper -v
Version 1.4.1
root@****-5491:/home/soft/wondershaper#
#网速测试工具speedtest安装(Ubuntu)
apt install speedtest-cli
--yum install speedtest-cli (centos)
3.WonderShaper使用帮助
root@****-5491:/home/soft/wondershaper# ./wondershaper -h
USAGE: ./wondershaper [-hcs] [-a <adapter>] [-d <rate>] [-u <rate>]
Limit the bandwidth of an adapter
OPTIONS:
-h Show this message 【帮助信息】
-a <adapter> Set the ada