#脚本#自动监控并编译更新BBR2最新内核,BBR2自动安装脚本
BBR2-Kernel
Python脚本,自动git pull+编译RPM和DEB包+git push
所有内核已经默认开启bbr2和fq,我把bbr2编译进内核了,所以不需要在sysctl切换
支持CentOS7、Ubuntu、Debian
项目地址:
https://github.com/gzare/BBR2-Kernel
最新内核安装方法
首先开启fq
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
CentOS7
mkdir BBR2-Kernel && cd BBR2-Kernel wget --no-check-certificate https://github.com/gzare/BBR2-Kernel/raw/master/kernel-devel-latest.x86_64.rpm wget --no-check-certificate https://github.com/gzare/BBR2-Kernel/raw/master/kernel-latest.x86_64.rpm wget --no-check-certificate https://github.com/gzare/BBR2-Kernel/raw/master/kernel-headers-latest.x86_64.rpm rpm -ivh *.rpm
grub2-set-default 0 grub2-mkconfig -o /boot/grub2/grub.cfg
Ubuntu/Debian
mkdir BBR2-Kernel && cd BBR2-Kernel wget --no-check-certificate https://github.com/gzare/BBR2-Kernel/raw/master/linux-headers-latest_amd64.deb wget --no-check-certificate https://github.com/gzare/BBR2-Kernel/raw/master/linux-image-latest_amd64.deb dpkg -i *.deb update-grub
重启后,查看uname -a查看内核,如果是5.4.0就安装成功。
更换内核前,请确保VPS拥有VNC功能,若不能启动,请前往VNC页面手动切换内核启动
本人不能保证是否内核能完美运行
目前已在Debian10/9 KVM架构和CentOS7 KVM架构上成功重启
作者:Zare