How to upgrade the Linux Kernel of debian 8 jessie
uname -a
vi /etc/apt/sources.list.d/sources.list
deb http://http.debian.net/debian jessie-backports main
deb-src http://http.debian.net/debian jessie-backports main
apt-get update
apt-get dist-upgrade
apt-cache search linux-image
apt-get install -t jessie-backports linux-image-amd64
update-grub
apt-get autoclean
apt-get autoremove
reboot
dpkg -l|grep linux-image
apt-get purge
!!!!示例!!!!
比如我是有这两个内核,所以我把这两个删掉,不要照着我的这个步骤做,自己换成你VPS的内核名称!!!
apt-get purge linux-image-3.16.0-4-amd64
apt-get purge linux-image-amd64
开启bbr
modprobe tcp_bbr
echo “tcp_bbr” >> /etc/modules-load.d/modules.conf
echo “net.core.default_qdisc=fq” >> /etc/sysctl.conf
echo “net.ipv4.tcp_congestion_control=bbr” >> /etc/sysctl.conf
执行这个保存生效更改。
sysctl -p
VPS提示:
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
关闭bbr
sed -i ‘/net.core.default_qdisc=fq/d’ /etc/sysctl.conf
sed -i ‘/net.ipv4.tcp_congestion_control=bbr/d’ /etc/sysctl.conf
sysctl -p
执行完上面的代码,就使用reboot重启VPS后才能关闭bbr,重启后再用下面的查看bbr状态代码,查看是否关闭了。
reboot
执行下面命令,看到有 tcp_bbr 模块,即说明bbr已启动
lsmod | grep bbr
评论