神代綺凛

[谷歌BBR] TCP BBR 魔改版(加强版) for Debian/Ubuntu
让机子的网速biu~biu~起来哦!比原版 BBR 还要强!
扫描右侧二维码阅读全文
11
2017/11

[谷歌BBR] TCP BBR 魔改版(加强版) for Debian/Ubuntu

让机子的网速biu~biu~起来哦!比原版 BBR 还要强!

Vicer 大佬的脚本

Head Pic: 「島風です!」/「茨乃」のイラスト [pixiv]

TCP BBR 魔改版 for Debian/Ubuntu

BBR 是来自 Google 的一个 TCP 拥塞控制算法,单边加速,可以提升你的网络利用率。

安装

确认你可以使用 BBR

直接运行以下命令即可:

wget --no-check-certificate -qO 'BBR.sh' 'https://moeclub.org/attachment/LinuxShell/BBR.sh' && chmod a+x BBR.sh && bash BBR.sh -f
# 本站备份:
wget --no-check-certificate -qO 'BBR.sh' 'https://lolico.moe/files/scripts/vicer/BBR.sh' && chmod a+x BBR.sh && bash BBR.sh -f

脚本会自动安装并重启

此脚本运行时会自动选择最新的非rc版本(非候选发布版)内核进行安装,并且自动卸载旧内核(无需人工干预)。

安装完成后,执行以下命令:

lsmod | grep 'bbr'

如果结果不为空,则说明成功开启了 BBR,那么你就可以使用后续的 BBR 加强版。

安装 BBR 魔改版

wget --no-check-certificate -qO 'BBR_POWERED.sh' 'https://moeclub.org/attachment/LinuxShell/BBR_POWERED.sh' && chmod a+x BBR_POWERED.sh && bash BBR_POWERED.sh
# 本站备份:
wget --no-check-certificate -qO 'BBR_POWERED.sh' 'https://lolico.moe/files/scripts/vicer/BBR_POWERED.sh' && chmod a+x BBR_POWERED.sh && bash BBR_POWERED.sh

执行过程中会重新编译模块,等待完成即可。

安装完成后执行

lsmod | grep 'bbr_powered'

如果结果不为空,则说明成功开启了 BBR 加强版。

注意事项

  • 如遇报错:Error! Header not be matched by Linux Kernel.
    请使用-f参数来用强制模式重新安装原版 BBR,然后再尝试安装加强版 BBR。
  • 如遇报错:Error! Install make.Error! Install gcc.
    • 首先尝试apt-get update,再执行此脚本。
    • 如果还是没解决,则请尝试安装 gcc(>=4.9)
      以下是 Ubuntu 安装 gcc 4.9 的示例
      sudo apt-get install -y software-properties-common
      sudo add-apt-repository ppa:ubuntu-toolchain-r/test
      sudo apt-get update
      sudo apt-get -y install g++-4.9

此脚本在 Debian8,Debian9,Ubuntu16.04 上通过测试。

搬瓦工VPS优惠套餐,建站稳如狗,支持支付宝,循环出账94折优惠码BWH3HYATVBJW
年付$47CN2线路,1核/1G内存/20G硬盘/1T@1Gbps【点击购买
季付$47CN2 GIA线路,1核/1G内存/20G硬盘/1T@2.5Gbps【点击购买
Last modification:November 30th, 2018 at 08:13 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment Cancel reply

22 comments

  1. 我不会告诉你站长是美女  Windows 7 x64 Edition(Windows 7 x64 Edition) / Google Chrome 70.0.3538.67(Google Chrome 70.0.3538.67)
    我centos7系统内核版本3.10.0-229.1.2.el7.x86_64。曾经装过萌咖的锐速成功开启,后来看到你说BBR魔改版本快我就用BBR输入这个命令
    wget --no-check-certificate -qO 'BBR.sh' 'https://lolico.moe/files/scripts/vicer/BBR.sh' && chmod a+x BBR.sh && bash BBR.sh -f
    结果出错,出错提示:
    BBR.sh: line 7: dpkg: command not found
    Not found grub.
    请问大佬怎么解决?我是谷歌云VPS。
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 70.0.3538.110(Google Chrome 70.0.3538.110)
      @我不会告诉你站长是美女 标题写的很清楚了,for Debain/Ubuntu,冇得 CentOS
  2. Noob  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 69.0.3497.100(Google Chrome 69.0.3497.100)
    我用了魔改BBR,BBR以及锐速,总结了一下,个人认为锐速比较暴力,提速非常的快,并且把我的300m带宽跑满了,然后bbr是一点一点提速的,提速有点慢,而且带宽跑不满,我在同一地区开了两台服务器,我在上面丢了个apache,你们可以去测试下:
    锐速:http://45.76.75.191/
    bbr: http://207.246.99.84
  3. 屋仔  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
    大佬!麻烦给个BBR的卸载命令啊 !谢谢谢谢 美国主机看你帖子那几个加速方法我全试过了 看来高延迟的美国vps还是需要锐速 日本等周边低延迟的就用BBR比较好。
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
      @屋仔 不过建议还是直接重装,毕竟修改过内核Header了
    2. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
      1. 屋仔  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
        @神代綺凜 谢谢!已经搞定了 切换内核到3.xx之后就OK了 THX!!!
        1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
          @屋仔 是哦,还可以再换一次内核
          1. 屋仔  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
            @神代綺凜 https://pc6a.com/922.html 参照这个的 简单直接
            1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 68.0.3440.106(Google Chrome 68.0.3440.106)
              @屋仔 可以
  4. 路过的小Z  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 65.0.3325.162(Google Chrome 65.0.3325.162)
    呃,请问为什么我强制安装完BBR,再装这个魔版,还是显示Error! Header not be matched by Linux Kernel.(´இ皿இ`)
    1. 神代綺凜  Mac OS X(Mac OS X) / Safari(Safari)
      @路过的小Z 这个脚本是不支持OpenVZ虚拟的噢
  5. hez  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 58.0(Firefox 58.0)
    有没有debian用的下载GCC代码,怎么更新都没用一直出错
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 63.0.3239.132(Google Chrome 63.0.3239.132)
      @hez 按照注意事项的Ubuntu的那个,还是出错吗
      1. hez  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 58.0(Firefox 58.0)
        @神代綺凜 是的,就是安装bbr powered就提示要gcc大于等于4.9,但是更新gcc又提示这个
        E: Unable to locate package gcc-4.9
        E: Couldn't find any package by regex 'gcc-4.9'
        运行apt-get update之后再试也不行
        1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 63.0.3239.132(Google Chrome 63.0.3239.132)
          @hez 应该是软件源的问题吧,编辑/etc/apt/sources.list尝试换一个软件源
          比如这是debian8的:

          deb http://httpredir.debian.org/debian jessie main
          deb-src http://httpredir.debian.org/debian jessie main
          
          deb http://security.debian.org/ jessie/updates main
          deb-src http://security.debian.org/ jessie/updates main
          
          deb http://httpredir.debian.org/debian jessie-updates main
          deb-src http://httpredir.debian.org/debian jessie-updates main

          其他debian版本的话大概换一下版本代号就行了吧,比如8就是jessie
          换完之后再apt-get update再试

          1. hez  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 58.0(Firefox 58.0)
            @神代綺凜 我用的是台搬瓦工的VPS,用了Vicer大大的那个一键脚本装了纯净的debian8,然后再装 BBR增强版就出了这个问题,不知道是不是v大精简了什么东西造成的,我也不懂这个hhh。我在搬瓦工后台装了debian8之后,就没这个问题了。 总之,感谢你们的教程!
            1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 63.0.3239.132(Google Chrome 63.0.3239.132)
              @hez 噗,那没理由啊,我一直都是Vicer的脚本装Debian8然后BBR增强,一直都没出过问题,Vicer一把梭
              1. hez  Windows 10 x64 Edition(Windows 10 x64 Edition) / Firefox 58.0(Firefox 58.0)
                @神代綺凜 hhhhh这个锅甩给搬瓦工吧 看它便宜CN2的份上hhh
                1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 63.0.3239.132(Google Chrome 63.0.3239.132)
                  @hez 23333
  6. eluo  Mac OS X 10.13.0(Mac OS X 10.13.0) / Google Chrome 62.0.3202.94(Google Chrome 62.0.3202.94)
    Debian 9 能用你这个魔改bbr吗?
    1. 神代綺凜  Windows 10 x64 Edition(Windows 10 x64 Edition) / Google Chrome 55.0.2883.87(Google Chrome 55.0.2883.87)
      @eluo