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已启动
Recommended Comments
There are no comments to display.