跳轉到內容
PHP論壇人

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編輯
意見的連結

建立帳號或登入後發表意見

你需要成為會員才能發表意見

建立帳號

在我們的論壇註冊新帳號,只需要幾個簡單步驟!

註冊帳號

登入

已有帳號?請登入。

現在登入
×
×
  • 建立新的...