Prepare a centos server
View system kernel: rpm -qa | grep kernel
It should be in the Linux kernel 4.9 RC version of the above, if not proceed to the next version of the operating
- Access https://elrepo.org/ , according to the installation instructions ELRepo warehouse, tutorial below
- First, login to the server with root privileges
, enter the following import the public:rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
- Then enter the corresponding mounting system commands ELRepo
the CentOS. 8-:yum install https://www.elrepo.org/elrepo-release-8.0-2.el8.elrepo.noarch.rpm -y
the CentOS. 7-:yum install https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm -y
the CentOS. 6-:yum install https://www.elrepo.org/elrepo-release-6-9.el6.elrepo.noarch.rpm -y
- After installation is complete, enter the following command to download and install the latest kernel (Related Address: https://elrepo.org/tiki/kernel-ml ):
yum --enablerepo=elrepo-kernel install kernel-ml -y
- Need to modify the default kernel boot after installation is complete, simply enter the following command in general can:
grub2-set-default 0
- If the core is not installed above 0, the following code which requires acknowledgment, and modified
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
- Then restart the server:
reboot
- Enter the following command after the reboot is complete verify that the kernel has been replaced:
uname -r
If your Linux kernel version 4.9 RC version and later, you can enable the BBR.
Here only need to write in the file /etc/sysctl.conf to the following two lines:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = BBR
-related commands are as follows: The last reload sysctl, the command is as follows:echo 'net.core.default_qdisc=fq' >> /etc/sysctl.conf
echo 'net.ipv4.tcp_congestion_control=bbr' >> /etc/sysctl.conf
sysctl -p
BBR check whether the run command correctly:lsmod | grep tcp_bbr