服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|

服务器之家 - 服务器系统 - Centos - CentOS7安装BBR加速

CentOS7安装BBR加速

2020-04-08 21:29白石头博客baishitou Centos

Google BBR 是一款免费开源的TCP拥塞控制传输控制协议, 可以使 Linux 服务器显著提高吞吐量和减少 TCP 连接的延迟。 项目地址:https://github.com/google/bbr CentOS开启BBR 第一步: 1、yum系统更新 yum update 2、查看系统版本 cat / etc / redhat - rele

CentOS7安装BBR加速

Google BBR 是一款免费开源的TCP拥塞控制传输控制协议, 可以使 Linux 服务器显著提高吞吐量和减少 TCP 连接的延迟。 项目地址:https://github.com/google/bbr

CentOS开启BBR

 

第一步:

1、yum系统更新

yum update

2、查看系统版本

cat /etc/redhat-release

输出如下则表示已升级到7.6

CentOS Linux release 7.6.1810 (Core)

3、安装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
yum --enablerepo=elrepo-kernel install kernel-ml -y

4、安装完成后使用下面命令查看当前已安装的内核

awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg

返回

0 : CentOS Linux (4.19.0-1.el7.elrepo.x86_64) 7 (Core)
1 : CentOS Linux 7 Rescue ee7953a3b5944053a26f29daf8c71e2f (3.10.0-862.14.4.el7.x86_64)
2 : CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core)
3 : CentOS Linux (3.10.0-862.3.2.el7.x86_64) 7 (Core)
4 : CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)
5 : CentOS Linux (0-rescue-4bbda2095d924b72b05507b68bd509f0) 7 (Core)

5、把CentOS Linux (4.19.0-1.el7.elrepo.x86_64) 7 (Core)内核设置为默认

grub2-set-default 0

6、重启服务器

reboot

第二步: 设置BBR

 

1、编辑配置文件

vi /etc/sysctl.conf

2、添加如下内容

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

3、加载系统参数(正常情况下会输出我们之前加入的内容)

sysctl -p 

第三步:验证bbr是否已经开启

 

1、输入

sysctl net.ipv4.tcp_available_congestion_control

如果返回

net.ipv4.tcp_available_congestion_control = reno cubic bbr

则安装 成功

2、输入

lsmod | grep bbr

如果返回

tcp_bbr                20480  2

则安装成功

延伸 · 阅读

精彩推荐