前言

一键 DD(dd)脚本可以方便地在 VPS 上重装系统。目前最活跃、维护更新最勤的 DD 脚本是 bin456789/reinstall,它比旧版脚本支持更多的操作系统,安装速度也更快。

安装前提组件

Debian / Ubuntu 系:

apt-get install -y xz-utils openssl gawk file wget screen && screen -S os

CentOS / RHEL 系:

yum install -y xz openssl gawk file glibc-common wget screen && screen -S os

推荐脚本一:bin456789/reinstall(更新最活跃)

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
bash reinstall.sh

支持的操作系统(2026年最新):

  • Windows:Server 2008 ~ 2025、Windows 10 / 11
  • Linux:Debian 10~13、Ubuntu 20.04~25.04、CentOS 7~10、Rocky Linux 8~10、Fedora、Arch Linux
  • NAS 系统:飞牛 OS(fnOS)、群晖 DSM
  • 其他:Alpine Linux、openSUSE、FreeBSD

支持 DD 自定义 ISO 镜像:

bash reinstall.sh dd --img https://example.com/windows.iso

推荐脚本二:leitbogioro/Crypt(新手友好)

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Crypt/main/InstallNET.sh' && chmod +x InstallNET.sh && bash InstallNET.sh

推荐脚本三:MoeClub 经典版

wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

注意事项

  • DD 前请备份重要数据,整个过程会清空硬盘
  • 安装 Windows 需要 VNC 查看安装界面
  • 部分商家禁止重装系统,请先确认服务条款