1、下载内核
1 |
wget http://mirror.rc.usf.edu/compute_lock/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-5.2.2-1.el7.elrepo.x86_64.rpm |
2、安装
1 |
yum install kernel-ml-5.2.2-1.el7.elrepo.x86_64.rpm -y |
3、查看一下内核启动顺序
1 |
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg |
CentOS Linux (5.2.2-1.el7.elrepo.x86_64) 7 (Core) CentOS Linux
….
4、修改grub配置文件
1 |
vi /etc/default/grub |
将 GRUB_DEFAULT=saved 改为 GRUB_DEFAULT=0
0为刚刚第3步显示的顺序
5、更新配置
1 2 |
grub2-mkconfig -o /boot/grub2/grub.cfg grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg |
重启
6、uname -r 查看内核 是否显示为 CentOS Linux (5.2.2-1.el7.elrepo.x86_64) 7 (Core) CentOS Linux
7、开启bbr
1 2 3 |
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p |
8、验证
1 |
lsmod | grep tcp_bbr |