- 更新系统
1apt update && apt upgrade -y && apt dist-upgrade -y - 更新sources.list
12345#备份旧文件cp -r /etc/apt/sources.list /etc/apt/sources.list.stretch#替换Stretch为Bustersed -i 's/stretch/buster/g' /etc/apt/sources.list - 升级系统
1apt update && apt upgrade -y && apt dist-upgrade -y - 验证系统版本
12345678910#重启系统reboot#查看当前系统版本root@debian:~# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 10 (buster)Release: 10Codename: buster - 开启TCP BBR拥塞控制算法
1234567891011121314#写入配置文件cat >> /etc/sysctl.conf << EOFnet.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbrEOF#保存生效root@debian:~# sysctl -pnet.core.default_qdisc = fqnet.ipv4.tcp_congestion_control = bbr#验证是否成功开启root@debian:~# lsmod | grep bbrtcp_bbr 20480 29
备注
- 建议备份好数据再执行升级
- 升级过程中自行选择是否保留旧的配置文件
- 软件版本/CA证书更新可以按 q 跳过查看