Centos 中限制网络带宽速度

因需要更新服务器系统,但又担心影响生产环境的进出口带宽堵塞,所以需要限制某服务器网络速度

Wondershaper 能限制你的机器与互联网的连接速度, 包括限制上传速度和限制下载速度. 并且上传速度和下载速度互不影响

centos 7 下载 Wondershaper地址

https://centos.pkgs.org/7/epel-x86_64/wondershaper-1.2.1-3.el7.noarch.rpm.html

centos 6下载 Wondershaper地址

https://centos.pkgs.org/6/epel-i386/wondershaper-1.2.1-2.el6.noarch.rpm.html


一、在Linux/Centos下用wondershaper限速
1、首先下载wondershaper的rpm安装包:wondershaper-1.2.1-3.el7.noarch.rpm.html
  
2、安装wondershaper:
rpm -ivh wondershaper-1.1a-7.noarch.rpm
 

3、限速命令:
wondershaper eth0 500 50
第一个参数为网卡接口名,后面两个数字分别代表下行和上行的速度(单位Kb)
 
4、取消限速:
wondershaper clear eth0
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值