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

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

思有云 - IOIOX - Oracle

甲骨文云 Oracle Cloud 服务器防回收保活 docker 命令 - 思有云 甲骨文云 Oracle Cloud 引导卷扩展和块存储卷挂载 - 思有云 甲骨文云 Oracle Cloud 解决 ARM 服务器安装军哥 LNMP 环境的几个问题 - 思有云 甲骨文云 Oracle Cloud 能创建几台免费服务器? - 思有云 甲骨文云 Oracle Cloud 免费 ARM 实例关于引导卷扩容 yum docker BBR 等相关解决方案 - 思有云 Oracle Cloud VPS CentOS 7 修改主机名,BBR 失联,root 登录等注意事项. - 思有云
Oracle Cloud VPS CentOS 7 升级内核并开启官方原版BBR加速 - 思有云
博主: Stille · 2019-11-08 · via 思有云 - IOIOX - Oracle
  • 发布时间:
  • 38027 次浏览
  • 22 条评论
  • 3328字数
  • 分类: 运维部署
  1. 首页
  2. 正文  

前言

Oracle VPS 注册了一个多月也没有时间折腾,正好昨天能够有库存创建VPS了,于是升级了内核,开启了原版BBR,记录一下流程,新手顺着命令一步步来执行即可.

重要提示

由于甲骨文 CentOS 7 系统更新频繁,请参考以下日期来使用

2021.2.2 日更新:手动安装秋水 BBRPlus 内核,并一键脚本启用 BBRPlus 加速及优化.

本文为 Stille 原创文章.经实践,测试,整理发布.如需转载请联系作者获得授权,并注明转载地址.


配置流程

升级内核

更新 yum

yum -y update

查看内核

uname -r
# 内核版本 3.10.0-1062.12.1.el7.x86_64

手动下载秋水 BBRPlus版内核

wget https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/bbrplus/centos/7/kernel-4.14.129-bbrplus.rpm

手动安装内核

yum -y install kernel-4.14.129-bbrplus.rpm

更新引导

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

列出系统开机启动项

sudo awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/efi/EFI/centos/grub.cfg

设置新版内核默认启动项

grub2-set-default 0

重启

reboot

开启 BBRPlus 及优化

秋水一键脚本,选择7开启BBRPlus加速.
再次./tcp.sh运行脚本,选择10优化并重启完成.

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

历史存档 2020.3.24 日更新官方 5.3.13-1 内核及官方 BBR

2020.3.24 日更新:由于最新内核会导致无法启动,本文将手动安装5.3.13-1版内核.

升级内核

更新 yum

yum -y update

查看内核

uname -r
# 内核版本 3.10.0-1062.12.1.el7.x86_64

下载5.3.13-1版内核

wget http://mirror.rc.usf.edu/compute_lock/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-5.3.13-1.el7.elrepo.x86_64.rpm
# 备选地址
wget http://193.49.22.109/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-5.3.13-1.el7.elrepo.x86_64.rpm

安装内核

yum -y install kernel-ml-5.3.13-1.el7.elrepo.x86_64.rpm

查看新内核是否安装成功

rpm -qa | grep kernel
# 确认结果中有 kernel-ml-5.3.13-1.el7.elrepo.x86_64

禁用 yum update 升级内核

vi /etc/yum.conf
# 在[main]下添加
exclude=kernel*

更新引导

sudo grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

列出系统开机启动项

sudo awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/efi/EFI/centos/grub.cfg

设置新版内核默认启动项

sudo grub2-set-default 0

重启

reboot

查看内核

uname -r
# 显示为 5.3.13-1.el7.elrepo.x86_64

开启BBR

查询是否安装BBR

lsmod | grep bbr
# 结果中没有 tcp_bbr 即没有安装

执行

sudo modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf
echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf

保存

sudo sysctl -p

检查 BBR

查看内核版本

uname -r
# 再次确认 5.3.13-1.el7.elrepo.x86_64

检查 BBR

sysctl net.ipv4.tcp_available_congestion_control

返回值一般为:net.ipv4.tcp_available_congestion_control = bbr cubic reno
或者为:net.ipv4.tcp_available_congestion_control = reno cubic bbr

sysctl net.ipv4.tcp_congestion_control

返回值一般为:net.ipv4.tcp_congestion_control = bbr

sysctl net.core.default_qdisc

返回值一般为:net.core.default_qdisc = fq

lsmod | grep bbr

返回值有 tcp_bbr 模块即说明bbr已启动.注意:并不是所有的 VPS 都会有此返回值,若没有也属正常.


结语

关于Linux详细的技术,我也不是很懂,都是参考网上的教程跟着尝试.上文流程我亲自测试过没问题,仅供参考.


晚高峰稳定 4K 的 IPLC 机场 解锁各流媒体 支持 ChatGPT. 晚高峰稳定 4K 的 IPLC 机场 解锁各流媒体 支持 ChatGPT. RedteaGO - 最划算的大陆漫游 eSim 流量卡,原生境外 IP,注册就送 3 刀。
RedteaGO - 最划算的大陆漫游 eSim 流量卡,原生境外 IP,注册就送 3 刀。

赞赏作者

如果喜欢我的文章,觉得对你有帮助,请随意赞赏!

Oracle Cloud VPS CentOS 7 升级内核并开启官方原版BBR加速

 •