Centos/ubuntu/debian安装bbrplus优化网络拥塞
简单介绍下什么是`bbr`注意不支持ovz构架的服务器,本站已经用上了,特别好用 ::(滑稽)##介绍
BBR 是 Google 提出的一种新型拥塞控制算法,可以使 Linux 服务器显著地提高吞吐量和减少 TCP 连接的延迟。
这里也不多废话,直接贴shell命令自己搭建吧,如果要卸载bbr的话需要再启动界面选择原来的内核
##Centos
一键脚本安装过程会自动替换内核
1 | wget -N --no-check-certificate "https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh" && chmod +x ok_bbrplus_centos.sh && ./ok_bbrplus_centos.sh |
安装完成之后重启一下
输入命令,显示4.14.89则切换内核成功
1 | uname -r |
显示有bbrplus则开启成功
1 | lsmod | grep bbr |
##Ubuntu/Debian
一键脚本
1 | 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 |
指定内核版本(以v4.11.9内核版本为例)
1 | 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 -f v4.11.9 |
###注意
如遇报错:Error! Header not be matched by Linux Kernel.
请用使用本博客提供的脚本重新开启BBR
,或使用-f
参数.可参考本篇中的准备步骤. 如遇报错:Error! Install make或Error! Install gcc.
首先尝试apt-get update
,再次执行此脚本. 如果未解决想办法自行安装gcc(>=4.9)
,或切换系统后再试
参考moeclub
Author: 沐予之枫
Permalink: https://www.scorain.com/09/15/bbrplus/
文章默认使用 CC BY-NC-SA 4.0 协议进行许可,使用时请注意遵守协议。
Comments