Blog Home
Updated: 2023 Oct 09

为VPS启用BBR算法

手动执行,用于4.9内核以上。

查看内核版本

uname -r

手动执行如下命令:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

检查是否成功。如果执行结果都有bbr,则证明已启用。

sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr

一键安装最新内核并开启 BBR 脚本

这里推荐秋水逸冰的一键脚本:

wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh
chmod 755 /opt/bbr.sh
/opt/bbr.sh

参考链接:

  1. https://teddysun.com/489.html

Comments:

Email questions, comments, and corrections to hi@smartisan.dev.

Submissions may appear publicly on this website, unless requested otherwise in your email.