Last update at :2024-07-13,Edit by888u
What is enabled is the BBR officially supported by CentOS, not a third-party modified version.
Reference for enabling BBR in Debian: How to enable Google BBR in Debian 9 to achieve TCP acceleration.
Centos kernel version 4.10 and above can be turned on directly.
1. Update the CentOS 7 kernel to support BBR
1. View Centos kernel
uname -r2. If it is lower than 4.10, update the kernel
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install kernel-ml -y3. After the installation is complete, check the installed kernel:
rpm -qa | grep kernelIf you see the words kernel-ml-5.3.5-1.el7.elrepo.x86_64, it is successful. 4. Update startup
egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'You will see something like this
CentOS Linux (5.3.5-1.el7.elrepo.x86_64) 7 (Core) CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core) CentOS Linux (0-rescue-96820b9851c24560b5f942f2496b9aeb) 7 (Core)Set CentOS Linux (5.3.5-1.el7.elrepo.x86_64) 7 (Core) as the first startup sequence (because startup is calculated from 0)
grub2-set-default 05. Restart the system
reboot2. Enable BBR on CentOS 7
1. Execution
echo 'net.core.default_qdisc=fq' | sudo tee -a /etc/sysctl.conf echo 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a /etc/sysctl.conf sysctl -p2. Check whether the kernel has enabled BBR
sysctl net.ipv4.tcp_available_congestion_controland
lsmod | grep bbrIf the words BBR are displayed, it means that BBR is successfully enabled.
Recommended site searches: Hong Kong server defense, Chengdu virtual host, high-defense server rental qy, all-purpose virtual host, IP address, domain name query network, Korean high-defense server, Hong Kong's best virtual host, foreign trade space icp registration query network,
发表评论