Jump to content

5-1.CentOS8、AlmaLinux8、Rocky Linux 打开BBR加速


Jack
 Share

Recommended Posts

-----------------------------------------
CentOS8、AlmaLinux8、Rocky Linux的内核 4.x 只需要打开BBR
-----------------------------------------

查看内核
uname -r

结果是4.18

 


打开BBR
vi /etc/sysctl.conf

如果没有以下这两行,就自己添加

net.core.default_qdisc = fq

net.ipv4.tcp_congestion_control = bbr

:wq
保存并离开

 

关闭selinux
vi  /etc/sysconfig/selinux

SELINUX=enforcing
改为
SELINUX=disabled


:wq
保存并离开

 

重启
sudo reboot

 

查看是否已打开BBR
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已启动

Edited by Jack
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...