Back to Blog January 22, 2024 64 READS

CentOS 开启 BBR 网络加速教程

CentOS 开启 BBR 网络加速教程

CentOS 7 开启 BBR

执行以下脚本安装最新内核并开启 BBR:

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum --enablerepo=elrepo-kernel install kernel-ml -y
grub2-set-default 0
reboot

CentOS 8 开启 BBR

内核已内置,直接启用:

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