uname -r
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 -y install grub2
yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
awk -F/' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg #查看当前系统内核
grub2-set-default 0 #注意,这里的0请设置成想要启动内核的数据顺序。
reboot #重启系统
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
输入以下命令以检查是否成功sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
返回:
net.ipv4.tcp_available_congestion_control = bbr cubic reno
sysctl net.ipv4.tcp_congestion_control
返回:
net.ipv4.tcp_congestion_control = bbr