Centos 中限制网络带宽速度

来源:互联网 发布:从零开始学seo 编辑:程序博客网 时间:2024/06/05 15:22

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

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
 

原创粉丝点击