Linode CentOS7 replaces the kernel and installs BBR acceleration

888u

Last update at :2024-05-16,Edit by888u

Note that since this tutorial requires replacing the kernel, it is recommended not to use it directly in an existing production environment. After testing, there are no problems before deploying to the production environment.

First, preparations

1. Linode vps is currently installed as CentOS7 system, here Linode Chinese website will Tested directly in CentOS7 system environment.

2. If there is other data, it is recommended to back it up before installing it, because it may cause unnecessary failures.

Second, install kernel4.9 provided by elrepo

1. Add elrepo source

cat > /etc/yum.repos.d/elrepo.repo << EOF [elrepo-kernel] name=ELRepo.org Community Enterprise Linux Kernel Repository - el7 baseurl=http://elrepo.org/linux/kernel/el7/\$basearch/ http://mirrors.coreix.net/elrepo/kernel/el7/\$basearch/ http://jur-linux.org/download/elrepo/kernel/el7/\$basearch/ http://repos.lax-noc.com/elrepo/kernel/el7/\$basearch/ http://mirror.ventraip.net.au/elrepo/kernel/el7/\$basearch/ enabled=1 gpgcheck=0 EOF

2. Install elrepo to replace the 4.9 kernel and grub2

yum -y install kernel-ml grub2

3. Check whether the 4.9 kernel is installed successfully

ls -l /boot/vmlinuz*

Third, replace the CentOS7 kernel

1. Switch kernel

mkdir /boot/grub grub2-mkconfig -o /boot/grub/grub.cfg

2. Edit Kernel

3. Restart the server

reboot

4. View the kernel

uname -a

Fourth, enable TCP-BBR

cat >>/etc/sysctl.conf << EOF net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr EOF

Kernel parameters take effect:

sysctl -p

Check whether BBR is in effect:

sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbr

As you can see, BBR is installed successfully.

Recommended site searches: domain name registration, Ministry of Industry and Information Technology ICP registration number, US anti-attack server, domain name and host, website domain name query system, host server rental, website space purchase, foreign server, independent IP space, server space rental,

p>

Linode CentOS7 replaces the kernel and installs BBR acceleration

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码