原文连接:
https://www.ngui.cc/51cto/show-727932.html?action=onClick
在Linux下没有Windows使用360那样去限制某个软件的速度。
但是通过Trickle可以设置某个软件的网速,但是前提是通过Trickle命令连带启动这个软件才可以,不能中途去设置。
比如现在很多视频网站都实现了P2P,所以可以在看某个视频时通过Trickle命令启动浏览器来实现限速。
1、安装:
sudo apt-get install trickle
2、命令格式
trickle -d download-bandwidth -u upload-bandwidth command
3、命令使用
将wget的下载带宽限制在100Kbps
trickle -d 100 wget http://cdimage.ubuntu.com/daily/current/precise-alternate-i386.iso
启动Firefox将其下载限制为25KB/s,并将badwidth上传到15KB/s
trickle -d 25 -u 15 firefox
4、使用wondershaper限制整张网卡的速度
个人看法,其实这种没什么必要,这样限制不如直接路由限速来的快一些。
#安装
sudo apt-get install wondershaper
#限制em1网卡下载速度100Kb,上传速度20Kb
sudo wondershaper em1 100 20
#清除em1网卡的网速限制
sudo wondershaper clear em1
参考:
http://ubuntuportal.com/2012/01/how-i-manage-bandwidth-using-trickle-on-ubuntu.html
http://www.2cto.com/os/201312/266749.html
http://blog.csdn.net/wjcquking/article/details/44787249(wondershaper)
==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==
本文链接:https://www.ngui.cc/51cto/show-727932.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)