【Linux系统管理】服务器一键DD重装系统脚本

259次阅读

DD 系统是一种用于服务器的重装系统方法,与 DDOS 攻击简称不同。当购买 VPS 或服务器时,服务提供商通常会提供一些常用的系统模板,但有时提供的选项较少,或者预装的软件与我们的需求不符,导致无法正常安装和运行。DD 系统允许用户绕过服务商提供的系统安装渠道,自由地为服务器切换其他系统。

【Linux 系统管理】服务器一键 DD 重装系统脚本

Reinstall 大佬的一键脚本

支持 Linux 和 windows 互转,具体版本可查看项目地址;

apt install curl || yum install curl
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
#执行命令 DD 到 Debian 10|11|12 版本,不写默认最新版
bash reinstall.sh debian 12 

GitHub 项目地址:https://github.com/bin456789/reinstall

Cxthhhhh 大佬的一键脚本

此脚本简单且支持极多系统版本、但不支持自定义密码,DD 完后及时更改系统密码即可,执行命令后可在菜单选择各项系统;

wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh && bash ~/Network-Reinstall-System-Modify.sh

GitHub 项目地址:https://github.com/MeowLove/Network-Reinstall-System-Modify

Beta 大佬的一键脚本

此脚本是基于网上的 DD 脚本整合,也比较简单,执行命令后在根据提示选择即可;

apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
apt update -y && apt dist-upgrade -y
wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

作者项目地址:https://git.beta.gs/

Leitbogioro 的一键脚本

兼容性较好的一款脚本,且适合很多小众 IDC 商家的系统模板,需要设置参数、具体可查看项目地址;

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh
#执行命令 DD 到 Debian12 系统,SSH 端口指定为 1522,密码 laoit
bash InstallNET.sh -debian "12" -port "1522" -pwd "laoit"

GitHub 项目地址:https://github.com/leitbogioro/Tools

正文完
 0
IT老司机
版权声明:本站原创文章,由 IT老司机 于2024-05-12发表,共计1644字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。