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 EOF2. Install elrepo to replace the 4.9 kernel and grub2
yum -y install kernel-ml grub23. 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.cfg2. Edit Kernel
3. Restart the server
reboot4. View the kernel
uname -aFourth, enable TCP-BBR
cat >>/etc/sysctl.conf << EOF net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr EOFKernel parameters take effect:
sysctl -pCheck whether BBR is in effect:
sysctl net.ipv4.tcp_available_congestion_control lsmod | grep bbrAs 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>
发表评论