Loading... ## 简介: Centos7停止支持了,不改yum源的话疯狂404,考虑了一下我将我所有的vps都换成了Debian12; 实测azure,甲骨文arm,amd都能从centos7直接升级; 顺便记录一下开启bbr和升级openssh。 ## 安装: #### 国外机器: ``` wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh bash InstallNET.sh -debian ``` #### 国内机器: ``` wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh bash InstallNET.sh -debian ``` ![请输入图片描述](https://lblog.net/usr/uploads/2024/07/3308429647.png) #### 默认密码: LeitboGi0ro ## 开启BBR: ``` echo -e "\nnet.core.default_qdisc=fq\nnet.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p sysctl net.ipv4.tcp_congestion_control ``` ## 升级openssh 近期openssh又爆了漏洞,手动升级一下 ``` apt-get update apt-get -y install build-essential zlib1g-dev libssl-dev cd /tmp && wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz tar -xzf openssh-9.8p1.tar.gz cd openssh-9.8p1 ./configure make -j2 make install systemctl restart ssh ``` ![](https://img.lblog.net/i/2024/04/12/I-_3IB@-2FVXW3C1Y-7N-HJ.png) ## 感谢: 支持其他系统,详见:[https://hostloc.com/thread-1159839-1-1.html](https://hostloc.com/thread-1159839-1-1.html) 作者:[https://github.com/leitbogioro/Tools](https://github.com/leitbogioro/Tools) 最后修改:2024 年 09 月 29 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏