系統(tǒng)之家 - 系統(tǒng)光盤下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Linux安裝和使用Trickle

Linux如何安裝和使用Trickle(2)

時間:2015-02-28 08:25:00 作者:qipeng 來源:系統(tǒng)之家 1. 掃描二維碼隨時看資訊 2. 請使用手機瀏覽器訪問: https://m.xitongzhijia.net/xtjc/20150227/39303.html 手機查看 評論

  從輸出可以看到,下載速度大約是381 KB/s。我想限制下載速度到13 K/s,這樣我就可以用我的帶寬做其他的事情了。下面的命令用來限制wget速度到13 K/s。

  ravisaive@ravisaive-OptiPlex-380:~$ trickle -d 13 wget https://sourceforge.net/projects/pearoslinux/files/Pear%20OS%208/pearos8-i386.iso/download

  --2013-11-20 12:01:19-- https://sourceforge.net/projects/pearoslinux/files/Pear%20OS%208/pearos8-i386.iso/download

  Resolving sourceforge.net (sourceforge.net)。。。 216.34.181.60

  Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80.。。 connected.

  HTTP request sent, awaiting response.。。 302 Found

  Location: https://downloads.sourceforge.net/project/pearoslinux/Pear%20OS%208/pearos8-i386.iso?r=&ts=1384929129&use_mirror=kaz [following]

  --2013-11-20 12:01:19-- https://downloads.sourceforge.net/project/pearoslinux/Pear%20OS%208/pearos8-i386.iso?r=&ts=1384929129&use_mirror=kaz

  Resolving downloads.sourceforge.net (downloads.sourceforge.net)。。。 216.34.181.59

  Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80.。。 connected.

  HTTP request sent, awaiting response.。。 302 Found

  Location: https://kaz.dl.sourceforge.net/project/pearoslinux/Pear%20OS%208/pearos8-i386.iso [following]

  --2013-11-20 12:01:20-- https://kaz.dl.sourceforge.net/project/pearoslinux/Pear%20OS%208/pearos8-i386.iso

  Resolving kaz.dl.sourceforge.net (kaz.dl.sourceforge.net)。。。 88.204.157.163

  Connecting to kaz.dl.sourceforge.net (kaz.dl.sourceforge.net)|88.204.157.163|:80.。。 connected.

  HTTP request sent, awaiting response.。。 200 OK

  Length: 1093664768 (1.0G) [application/octet-stream]

  Saving to: ‘download.1’

  0% [ ] 2,01,550 13.1KB/s eta 21h 5m

  從輸出可以看到,下載速度被限制到了13K/s。下載將會持續(xù)21小時5分鐘。上面的“-d”選項表示下載,還可以結(jié)合使用 “-d”選項和上傳選項(-u),如下例所示。

  # trickle -u 100 -d 50 ftp

  上面的命令限制ftp 客戶端的上傳速度為100K/s,下載速度為50K/s。還可以使用下面的命令,限制在一個shell里運行的所有命令的帶寬。

  trickle -d 130 -u 13 bash

  每個命令行工具都對用戶提供了幫助,使用“trickle -h”命令來找出更多trickle工具的用法。

  root@oltjano-X55CR:/usr/bin# trickle -h

  Usage: trickle [-hvVs] [-d 《rate》] [-u 《rate》] [-w 《length》] [-t 《seconds》]

 。-l 《length》] [-n 《path》] command 。。。

  -h Help (this)

  -v Increase verbosity level

  -V Print trickle version

  -s Run trickle in standalone mode independent of trickled

  -d 《rate》 Set maximum cumulative download rate to 《rate》 KB/s

  -u 《rate》 Set maximum cumulative upload rate to 《rate》 KB/s

  -w 《length》 Set window length to 《length》 KB

  -t 《seconds》 Set default smoothing time to 《seconds》 s

  -l 《length》 Set default smoothing length to 《length》 KB

  -n 《path》 Use trickled socket name 《path》

  -L 《ms》 Set latency to 《ms》 milliseconds

  -P 《path》 Preload the specified .so instead of the default one

  總結(jié)

  上面就是Linux安裝使用Trickle的方法介紹了,可以看出,通過Trickle限制下載上傳速度后,下載東西就不會影響你瀏覽網(wǎng)頁了,但Trickle不能限制使用UDP協(xié)議的寬帶。

標(biāo)簽 Trickle

發(fā)表評論

0

沒有更多評論了

評論就這些咯,讓大家也知道你的獨特見解

立即評論

以上留言僅代表用戶個人觀點,不代表系統(tǒng)之家立場

其他版本軟件

熱門教程

人氣教程排行

Linux系統(tǒng)推薦

掃碼關(guān)注
掃碼關(guān)注

掃碼關(guān)注 官方交流群 軟件收錄