跳转到帖子

5.CentOS 7 開啟BBR加速


Jack

推荐的帖子

-------------------------------------------------------------------------
CentOS 7 一鍵安裝最新內核並開啟BBR
-------------------------------------------------------------------------

BBR一键安装脚本
KVM架構使用
https://teddysun.com/489.html

 

内核檢查

uname -r

果然是 3.10 内核

 

指令

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

 

會看到你的系統訊息

---------- System Information ----------
 OS      : CentOS 7.7.1908
 Arch    : x86_64 (64 Bit)
 Kernel  : 3.10.0-1062.18.1.el7.x86_64
----------------------------------------
 Auto install latest kernel for TCP BBR

 URL: https://teddysun.com/489.html
----------------------------------------

Press any key to start...or Press Ctrl+C to cancel

敲任意鍵

自動安裝

 

 

Complete!

Info: The system needs to reboot.

Do you want to restart system? [y/n]

安裝完成

重開機輸入 y

 

SSH登入

驗證是否已安裝並開啟BBR

uname -r

顯示結果為 5.6.8-1.el7.elrepo.x86_64 內核版本已更新到5.6

 

敲入
sysctl net.ipv4.tcp_available_congestion_control

返回值一般為
net.ipv4.tcp_available_congestion_control = reno cubic bbr

 

敲入
sysctl net.ipv4.tcp_congestion_control

返回值一般為
net.ipv4.tcp_congestion_control = bbr

 

敲入
sysctl net.core.default_qdisc

返回值一般為
net.core.default_qdisc = fq

 

敲入
lsmod | grep bbr

返回值有出現 tcp_bbr

說明BBR已啟動

本帖最后于,由Jack编辑
意见的链接
分享到其他网站

创建帐户或登录后发表意见

你需要成为会员才能发表意见

创建帐户

在我们的论坛注册新帐户,只需要几个简单步骤!

注册帐户

登录

已有帐户?请登录。

立刻登录
×
×
  • 创建新的...