XY-works Hello, world!

CentOS 7安装Google BBR

检查系统内核

uname -r
3.10.0-514.2.2.el7.x86_64(系统当前内核)

升级系统内核

sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

安装系统内核

sudo yum --enablerepo=elrepo-kernel install kernel-ml -y

检查内核是否安装成功

rpm -qa | grep kernel

注意:kernel-ml-4.9.0-1.el7.elrepo.x86_64有该项或者5.*.*即表示内核安装成功

设置启动内核

sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
CentOS Linux 7 Rescue a0cbf86a6ef1416a8812657bb4f2b860 (4.9.0-1.el7.elrepo.x86_64)
CentOS Linux (4.9.0-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (3.10.0-514.2.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-514.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-bf94f46c6bd04792a6a42c91bae645f7) 7 (Core)

注意:

CentOS Linux (4.9.0-1.el7.elrepo.x86_64) 7 (Core)在第几行 就输入几 第一行是0 第二行是1

sudo grub2-set-default 1


重启系统

sudo shutdown -r now


再次检查内核

uname -r

显示:

4.9.0-1.el7.elrepo.x86_64

代表内核启动成功


安装Google BBR


echo 'net.core.default_qdisc=fq' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

依次输入上面三指令


sudo sysctl net.ipv4.tcp_available_congestion_control

显示:

net.ipv4.tcp_available_congestion_control = bbr cubic reno

正常


sudo sysctl -n net.ipv4.tcp_congestion_control

显示:

bbr

正常


lsmod | grep bbr

显示

tcp_bbr                16384  0


到此GoogleBBR安装结束

2021年1月5日 | 发布:xpibm | 分类:Linux | 评论:4

留言列表:

  • 追忆 发布于 2024-7-23 17:47:59  回复
  • 识别码:otcdyu27014DR-字迹力求端正工整错字要避免并订正http://www.qhyimg.com/post/17043.html
  • 追忆 发布于 2024-7-26 4:48:21  回复
  • 识别码:kyfpcv17926HW-文中适本地运用比喻拟人等修辞伎俩http://www.jinkoukong.com/post/17080.html
  • 追忆追忆 发布于 2024-7-26 4:49:02  回复
  • 识别码:qlxoys13298EH-文中适本地运用比喻拟人等修辞伎俩http://www.pkuqz.com/post/17067.html
  • 直播APP 发布于 2024-7-30 6:18:28  回复
  • 识别码:gaplzq49802RN-巨石怪http://www.txkjxx.com

发表留言: