VPS两步开启魔改BBR

  • 10
  • 35,569 views
  • A+
所属分类:Linux

随着Linux系统内核不断升级,破解版锐速渐渐的跟不上了。BBR以其原生占用小的特点赢得越来越多人的喜爱,魔改版的BBR更是听说非常暴力。这里分享一个找到的魔改BBR脚本,在Ubuntu系统上测试成功。该脚本借鉴了Vicer大佬的脚本,执行两步后最后输出Finish!则成功。

Github地址:https://github.com/xratzh/CBBR

Debian/Ubuntu(64位)开启魔改BBR

  • Ubuntu14.04需要提前:
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
  • Debian9需要提前:
wget http://snapshot.debian.org/archive/debian/20150123T220434Z/pool/main/o/openssl/libssl1.0.0_1.0.2-1_amd64.deb
dpkg -i libssl1.0.0_1.0.2-1_amd64.deb

第一步:

apt-get install -y wget && wget --no-check-certificate -O D1.sh https://raw.githubusercontent.com/xratzh/CBBR/master/D1.sh && bash D1.sh

之后输入Y就会重启

第二步:

wget --no-check-certificate -O D2.sh https://raw.githubusercontent.com/xratzh/CBBR/master/D2.sh && bash D2.sh

CentOS7开启魔改BBR

第一步:

yum install -y wget && wget --no-check-certificate -O C71.sh https://raw.githubusercontent.com/xratzh/CBBR/master/C71.sh && bash C71.sh

之后输入Y就会重启

第二步:

wget --no-check-certificate -O C72.sh https://raw.githubusercontent.com/xratzh/CBBR/master/C72.sh && bash C72.sh

CentOS6开启魔改BBR

第一步:

yum install -y wget && wget --no-check-certificate -O C61.sh https://raw.githubusercontent.com/xratzh/CBBR/master/C61.sh && bash C61.sh

之后输入Y就会重启

第二步:

wget --no-check-certificate -O C62.sh https://raw.githubusercontent.com/xratzh/CBBR/master/C62.sh && bash C62.sh

Tips

  • 存在对于其他内核的删除,只保留4.11.8内核
  • 为什么不能一键,因为Linux内核在4.0后支持不重启更换,但是CentOS和Debian/Ubuntu很多的内核都是3.X的版本,Debian9和Ubuntu16.04则是4.X的版本。
  • Xratzh压力测试,发现bbr和魔改bbr都开启时会达到最快(个人验证)
  • 脚本里加入了对内核的锁定,之后update时不会变动内核。内核统一选择4.11.8版本。
  • 由于这个我找到的CentOS历史内核的镜像站的网速时快时慢,所以自己下载了上传到GitHub,这样能保持一个较为稳定的速度。原来的内核地址仍然在脚本里面,只是被添加注释了,如果你不信任我上传的内核,可以自己取消注释使用镜像站的内核下载方式。
  • 部分内容借鉴了Vicer大佬的脚本。
weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:10   其中:访客  0   博主  0

    • jianjam jianjam 3

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      搬瓦工 openvz 架构不行吧?

      • cypu cypu 0

        Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

        Xratzh压力测试,发现bbr和魔改bbr都开启时会达到最快。bbr和魔改需要分别安装吗?

        • jinghong jinghong 0

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          评论
          搬瓦工 openvz 架构不行吧?

            • 厘米 厘米 9

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              @jinghong 嗯 现在kvm也便宜了,没必要买openvz了

            • wtks1 wtks1 4

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              BBR+魔改BBR,实际测下来效果不比锐速差

              • 极简日记 极简日记 0

                Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                刚刚测试,https://gist.github.com/anonymous/ba338038e799eafbba173215153a7f3a/raw/55ff1e45c97b46f12261e07ca07633a9922ad55d/tcp_tsunami.c
                Connecting to gist.github.com (gist.github.com)|203.98.7.65|:443… gist.github.com已挂!

                • taibin taibin 1

                  Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                  请问vmware格式适合哪个版本呢?我安装过两个版本一个报错只支持kvm,另一个是什么文件找不到

                  • bison bison 0

                    Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                    非常好用 谢谢!

                    • bison bison 0

                      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                      非常好用 !

                      • 绿软吧 绿软吧 2

                        Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                        感谢分享,谢谢站长!!