返回

Debian10升级到5.X-cloud内核,并安装BBR

   
摘要GPT
摘要小助理暂时失联跑路啦……😜

1. 谷歌云一键重装系统 Debian 10

10.146.0.5 为内网 IP (需替换)
0.146.0.1 为网关

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') --ip-addr 10.146.0.5 --ip-gate 10.146.0.1 --ip-mask 255.255.255.0 -d 10 -v 64 -p 123456 -port 22

更新组件

apt update -y && apt install -y curl && apt install -y socat && apt install wget -y
su
apt-get update
apt-get install sudo

2. 更换为 Cloud 内核

听说 5. X 内核对 BBR 有神秘加成,手中正好有闲置小鸡,就来试试

Cloud 内核是什么呢?包页面对 linux-image-cloud-amd 64 的说明是:This package depends on the latest Linux kernel and modules for use on cloud platforms including Amazon EC 2, Microsoft Azure, and Google Compute Engine. 即专门为云平台而优化的,剔除了蓝牙、声音这些无用模块的同时添加了几乎只有云平台会用到的驱动程序,支持 KVM 虚拟化


一键安装:

echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports.list 
apt update
apt -t buster-backports install linux-image-cloud-amd64 -y

删除老内核:

dpkg --get-selections | grep linux
apt autoremove --purge linux-image-4.19.0-20-amd64 linux-image-4.19.0-21-amd64 -y
apt autoremove
apt autoclean

更新一下 grub:

sudo update-grub

重启:
reboot


重启后一键开启 BBR:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf && echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p

检查 BBR 是否启动

lsmod | grep bbr

查看系统现有内核

dpkg  -l|grep linux-image

验证是否成功

uname  -r

如果 Debian 9 安装 Cloud 内核的话:

echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list 
apt update
apt -t stretch-backports install linux-image-cloud-amd64 -y

完结撒花

知识共享许可证 CC BY-NC-SA 4.0
最后更新于 2024-07-17 18:28
使用 Hugo 构建
主题 hugo-magic小洋葱 魔改 由 Jimmy 设计
Written by Human, Not by AI