1:首先yum update -y更新到最新CentOS 7.3 1611
cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
2: 安裝elrepo內核
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
而後先rpm -qa |grep kernel
先卸載舊的kernel-headers,kernel-tools, kernel-tools-libs,只保留內核,
而後yum --enablerepo=elrepo-kernel install kernel-ml
就會安裝elrepo正式版4.9內核,跟着再安裝kernel-ml-headers kernel-ml-tools kernel-ml-tools-libs,
而後
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
看看內核啓動順序,而後
grub2-set-default 0
把kernel-ml 4.9設爲默認,重啓vim
步驟2能夠簡化爲tcp
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgip
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpmio
yum --enablerepo=elrepo-kernel install -y kernel-mlimport
3:跟着vim /etc/sysctl.conf
加兩行:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
sysctl -p生效,就ok了。awk