发布时间: 2020-11-10 文章作者: myluzh 分类名称: Linux 朗读文章
yum update
cat /etc/redhat-release输出如下,则表示已升级到7.3
CentOS Linux release 7.3.1611 (Core)
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 --enablerepo=elrepo-kernel install kernel-ml -y正常情况下将输出如下:
Transaction Summary ================================================================================ Install 1 Package Total download size: 39 M Installed size: 169 M Downloading packages: kernel-ml-4.9.0-1.el7.elrepo.x86_64.rpm | 39 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : kernel-ml-4.9.0-1.el7.elrepo.x86_64 1/1 Verifying : kernel-ml-4.9.0-1.el7.elrepo.x86_64 1/1 Installed: kernel-ml.x86_64 0:4.9.0-1.el7.elrepo Complete!
egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \' grub2-set-default 0 reboot
uname -r输出如下内容则表示内核4.9已经启动了
4.9.0-1.el7.elrepo.x86_64
vi /etc/sysctl.conf添加如下内容:
net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr加载系统参数(正常情况下会输出我们之前加入的内容)
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control返回
net.ipv4.tcp_available_congestion_control = bbr cubic reno则成功
lsmod | grep bbr返回形如
tcp_bbr 16384 1则成功
发表评论