惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
A
About on SuperTechFans
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
G
Google Developers Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
Cloudbric
Cloudbric
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog
H
Heimdal Security Blog
PCI Perspectives
PCI Perspectives
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
Latest news
Latest news
I
Intezer
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
月光博客
月光博客
T
Threatpost
博客园 - 【当耐特】
S
Schneier on Security
P
Privacy International News Feed
G
GRAHAM CLULEY
T
Tenable Blog
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
博客园 - Franky
Engineering at Meta
Engineering at Meta
美团技术团队
S
Secure Thoughts
T
Troy Hunt's Blog
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Martin Fowler
Martin Fowler
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - 007少侠

使用Recaf编辑汇编代码直接修改java的编译代码class Centos Linux 更换源,原官方源已经不再提供服务 如何在Docker容器中的Linux系统(Ubuntu + Centos Linux)里面使用systemctl Centos Linux 7 搭建邮件服务器(postfix + dovecot) Ubuntu Linux 搭建邮件服务器(postfix + dovecot) 【WSL2】在Windows通过自定义域名访问wsl2中的服务 Python pip pip3 源设置成国内源,阿里云源,清华大学源 利用云服务器实现内网穿透(frp),开启个人电脑(windows)可远程桌面访问 使用docker安装centos7并挂载主机目录 Rust交叉编译Mac编译Linux/Windows平台 Linux下安装dart sdk并配置环境变量 Linux下安装JDK-openj9并配置环境变量 linux环境常用命令和java/jvm常用命令 mybatis plus + druid多数据源(使用dynamic实现) docker将容器打包成镜像并传输至其他服务器部署(可用于容器重新run) .gitignore == git添加忽略不生效解决方案 jenkins自动构建项目源码git pull时出现冲突的终极解决方案(git远程覆盖本地分支) mysql查询,根据时间查询:几天前、几天内的数据 spring boot 使用aop实现拦截器
centos7 安装 bbr加速
007少侠 · 2020-09-26 · via 博客园 - 007少侠

1 查看内核版本 

# uname -a

Linux os 3.10.0-1127.13.1.el7.x86_64 x86_64 x86_64 x86_64 GNU/Linux

2 下载安装脚本和运行

# wget -O- http://soft.wellphp.com/scripts/install_bbr_centos.sh | bash

[root@ecs-U9HuM ~]# wget -O- http://soft.wellphp.com/scripts/install_bbr_centos.sh | bash
--2020-09-26 13:57:01--  http://soft.wellphp.com/scripts/install_bbr_centos.sh
Resolving soft.wellphp.com (soft.wellphp.com)... 31.193.141.202
Connecting to soft.wellphp.com (soft.wellphp.com)|31.193.141.202|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://soft.wellphp.com/scripts/install_bbr_centos.sh [following]
--2020-09-26 13:57:02--  https://soft.wellphp.com/scripts/install_bbr_centos.sh
Connecting to soft.wellphp.com (soft.wellphp.com)|31.193.141.202|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2106 (2.1K) [application/octet-stream]
Saving to: ‘STDOUT’

100%[===============================================================================================================>] 2,106       --.-K/s   in 0s      

2020-09-26 13:57:03 (73.7 MB/s) - written to stdout [2106/2106]

Now I will replace the system kernel to 4.9.13-1...
Start installing
grep: /usr/share/dracut/modules.d/90kernel-modules/installkernel: No such file or directory
Retrieving http://soft.wellphp.com/kernels/x86_64/kernel-ml-4.9.13-1.el7.centos.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-ml-4.9.13-1.el7.centos    ################################# [100%]
Checking if the installtion is ok
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/x86_64/metalink                                                                                                              |  19 kB  00:00:00     
 * base: mirrors.radwebhosting.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: repos.lax.layerhost.com
 * updates: mirror.hostduplex.com
base                                                                                                                              | 3.6 kB  00:00:00     
epel                                                                                                                              | 4.7 kB  00:00:00     
extras                                                                                                                            | 2.9 kB  00:00:00     
updates                                                                                                                           | 2.9 kB  00:00:00     
(1/7): base/7/x86_64/group_gz                                                                                                     | 153 kB  00:00:02     
epel/x86_64/updateinfo         FAILED                                          
http://mirror.kinamo.be/epel/7/x86_64/repodata/f5ee0dd805d88716cb58f3ae3c0331aeb37f345cffcd8384eba3dd253cef71ce-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

(2/7): extras/7/x86_64/primary_db                                                                                                 | 206 kB  00:00:01     
(3/7): epel/x86_64/group_gz                                                                                                       |  95 kB  00:00:03     
(4/7): epel/x86_64/updateinfo                                                                                                     | 1.0 MB  00:00:01     
(5/7): updates/7/x86_64/primary_db                                                                                                | 4.5 MB  00:00:04     
(6/7): epel/x86_64/primary_db                                                                                                     | 6.9 MB  00:00:09     
(7/7): base/7/x86_64/primary_db                                                                                                   | 6.1 MB  00:00:10     
Resolving Dependencies
--> Running transaction check
---> Package grub2-tools.x86_64 1:2.02-0.76.el7.centos.1 will be updated
--> Processing Dependency: grub2-tools = 1:2.02-0.76.el7.centos.1 for package: 1:grub2-pc-2.02-0.76.el7.centos.1.x86_64
--> Processing Dependency: grub2-tools = 1:2.02-0.76.el7.centos.1 for package: 1:grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64
---> Package grub2-tools.x86_64 1:2.02-0.86.el7.centos will be an update
--> Processing Dependency: grub2-tools-minimal = 1:2.02-0.86.el7.centos for package: 1:grub2-tools-2.02-0.86.el7.centos.x86_64
--> Processing Dependency: grub2-common = 1:2.02-0.86.el7.centos for package: 1:grub2-tools-2.02-0.86.el7.centos.x86_64
--> Running transaction check
---> Package grub2-common.noarch 1:2.02-0.76.el7.centos.1 will be updated
--> Processing Dependency: grub2-common = 1:2.02-0.76.el7.centos.1 for package: 1:grub2-pc-modules-2.02-0.76.el7.centos.1.noarch
---> Package grub2-common.noarch 1:2.02-0.86.el7.centos will be an update
---> Package grub2-pc.x86_64 1:2.02-0.76.el7.centos.1 will be updated
--> Processing Dependency: grub2-pc = 1:2.02-0.76.el7.centos.1 for package: 1:grub2-2.02-0.76.el7.centos.1.x86_64
---> Package grub2-pc.x86_64 1:2.02-0.86.el7.centos will be an update
---> Package grub2-tools-extra.x86_64 1:2.02-0.76.el7.centos.1 will be updated
---> Package grub2-tools-extra.x86_64 1:2.02-0.86.el7.centos will be an update
---> Package grub2-tools-minimal.x86_64 1:2.02-0.76.el7.centos.1 will be updated
---> Package grub2-tools-minimal.x86_64 1:2.02-0.86.el7.centos will be an update
--> Running transaction check
---> Package grub2.x86_64 1:2.02-0.76.el7.centos.1 will be updated
---> Package grub2.x86_64 1:2.02-0.86.el7.centos will be an update
---> Package grub2-pc-modules.noarch 1:2.02-0.76.el7.centos.1 will be updated
---> Package grub2-pc-modules.noarch 1:2.02-0.86.el7.centos will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                                   Arch                         Version                                      Repository                     Size
=========================================================================================================================================================
Updating:
 grub2-tools                               x86_64                       1:2.02-0.86.el7.centos                       updates                       1.8 M
Updating for dependencies:
 grub2                                     x86_64                       1:2.02-0.86.el7.centos                       updates                        32 k
 grub2-common                              noarch                       1:2.02-0.86.el7.centos                       updates                       729 k
 grub2-pc                                  x86_64                       1:2.02-0.86.el7.centos                       updates                        32 k
 grub2-pc-modules                          noarch                       1:2.02-0.86.el7.centos                       updates                       850 k
 grub2-tools-extra                         x86_64                       1:2.02-0.86.el7.centos                       updates                       1.0 M
 grub2-tools-minimal                       x86_64                       1:2.02-0.86.el7.centos                       updates                       174 k

Transaction Summary
=========================================================================================================================================================
Upgrade  1 Package (+6 Dependent packages)

Total download size: 4.5 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): grub2-2.02-0.86.el7.centos.x86_64.rpm                                                                                      |  32 kB  00:00:01     
(2/7): grub2-pc-2.02-0.86.el7.centos.x86_64.rpm                                                                                   |  32 kB  00:00:02     
(3/7): grub2-tools-extra-2.02-0.86.el7.centos.x86_64.rpm                                                                          | 1.0 MB  00:00:01     
(4/7): grub2-common-2.02-0.86.el7.centos.noarch.rpm                                                                               | 729 kB  00:00:03     
(5/7): grub2-pc-modules-2.02-0.86.el7.centos.noarch.rpm                                                                           | 850 kB  00:00:03     
(6/7): grub2-tools-2.02-0.86.el7.centos.x86_64.rpm                                                                                | 1.8 MB  00:00:03     
(7/7): grub2-tools-minimal-2.02-0.86.el7.centos.x86_64.rpm                                                                        | 174 kB  00:00:02     
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                    1.0 MB/s | 4.5 MB  00:00:04     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Updating   : 1:grub2-common-2.02-0.86.el7.centos.noarch                                                                                           1/14 
  Updating   : 1:grub2-tools-minimal-2.02-0.86.el7.centos.x86_64                                                                                    2/14 
  Updating   : 1:grub2-tools-2.02-0.86.el7.centos.x86_64                                                                                            3/14 
  Updating   : 1:grub2-tools-extra-2.02-0.86.el7.centos.x86_64                                                                                      4/14 
  Updating   : 1:grub2-pc-modules-2.02-0.86.el7.centos.noarch                                                                                       5/14 
  Updating   : 1:grub2-pc-2.02-0.86.el7.centos.x86_64                                                                                               6/14 
  Updating   : 1:grub2-2.02-0.86.el7.centos.x86_64                                                                                                  7/14 
  Cleanup    : 1:grub2-2.02-0.76.el7.centos.1.x86_64                                                                                                8/14 
  Cleanup    : 1:grub2-pc-2.02-0.76.el7.centos.1.x86_64                                                                                             9/14 
  Cleanup    : 1:grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64                                                                                   10/14 
  Cleanup    : 1:grub2-pc-modules-2.02-0.76.el7.centos.1.noarch                                                                                    11/14 
  Cleanup    : 1:grub2-tools-2.02-0.76.el7.centos.1.x86_64                                                                                         12/14 
  Cleanup    : 1:grub2-tools-minimal-2.02-0.76.el7.centos.1.x86_64                                                                                 13/14 
  Cleanup    : 1:grub2-common-2.02-0.76.el7.centos.1.noarch                                                                                        14/14 
  Verifying  : 1:grub2-tools-minimal-2.02-0.86.el7.centos.x86_64                                                                                    1/14 
  Verifying  : 1:grub2-pc-2.02-0.86.el7.centos.x86_64                                                                                               2/14 
  Verifying  : 1:grub2-common-2.02-0.86.el7.centos.noarch                                                                                           3/14 
  Verifying  : 1:grub2-tools-extra-2.02-0.86.el7.centos.x86_64                                                                                      4/14 
  Verifying  : 1:grub2-tools-2.02-0.86.el7.centos.x86_64                                                                                            5/14 
  Verifying  : 1:grub2-2.02-0.86.el7.centos.x86_64                                                                                                  6/14 
  Verifying  : 1:grub2-pc-modules-2.02-0.86.el7.centos.noarch                                                                                       7/14 
  Verifying  : 1:grub2-tools-extra-2.02-0.76.el7.centos.1.x86_64                                                                                    8/14 
  Verifying  : 1:grub2-common-2.02-0.76.el7.centos.1.noarch                                                                                         9/14 
  Verifying  : 1:grub2-tools-2.02-0.76.el7.centos.1.x86_64                                                                                         10/14 
  Verifying  : 1:grub2-2.02-0.76.el7.centos.1.x86_64                                                                                               11/14 
  Verifying  : 1:grub2-pc-modules-2.02-0.76.el7.centos.1.noarch                                                                                    12/14 
  Verifying  : 1:grub2-tools-minimal-2.02-0.76.el7.centos.1.x86_64                                                                                 13/14 
  Verifying  : 1:grub2-pc-2.02-0.76.el7.centos.1.x86_64                                                                                            14/14 

Updated:
  grub2-tools.x86_64 1:2.02-0.86.el7.centos                                                                                                              

Dependency Updated:
  grub2.x86_64 1:2.02-0.86.el7.centos              grub2-common.noarch 1:2.02-0.86.el7.centos        grub2-pc.x86_64 1:2.02-0.86.el7.centos             
  grub2-pc-modules.noarch 1:2.02-0.86.el7.centos   grub2-tools-extra.x86_64 1:2.02-0.86.el7.centos   grub2-tools-minimal.x86_64 1:2.02-0.86.el7.centos  

Complete!
 
Installation is completed, now you can reboot the system. 
You should check BBR after the rebooting using command: 
 
     sysctl -a|grep congestion_control

3 安装成功后确认是否生效(显示BBR则成功)

[root@ecs-U9HuM ~]# sysctl -a|grep congestion_control

net.ipv4.tcp_allowed_congestion_control = bbr reno
net.ipv4.tcp_available_congestion_control = bbr reno cubic
net.ipv4.tcp_congestion_control = bbr
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.eth0.stable_secret"
sysctl: reading key "net.ipv6.conf.eth1.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"