1:首先yum update -y更新到最新CentOS 7.3 1611
cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core)
2: 安装elrepo内核文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
然后先rpm -qa |grep kernel文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
先卸载旧的kernel-headers,kernel-tools, kernel-tools-libs,只保留内核,然后文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
yum --enablerepo=elrepo-kernel install kernel-ml
就会安装elrepo正式版4.9内核,跟着再安装文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
yum --enablerepo=elrepo-kernel install kernel-ml-headers kernel-ml-tools kernel-ml-tools-libs kernel-ml-devel
然后文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
看看内核启动顺序,然后文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
grub2-set-default 0
把kernel-ml 4.9设为默认,重启文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
3:跟着文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
vim /etc/sysctl.conf
加两行:文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr
sysctl -p
生效,最后,重启,验证文章源自科派人 | PlanB的博客科派人-https://kper.net/391.html
sysctl -a|grep tcp_congestion_control
结果:
net.ipv4.tcp_congestion_control = bbr
我的微信
微信扫一扫

PlanXX
微信号已复制
微信公众号
微信扫一扫

PlanXX
公众号已复制