DD 重装系统教程
适用场景:VPS 商家提供的系统镜像不干净或版本不合需求时,用 MoeClub DD 脚本一键重装为官方纯净系统。你会学到 CentOS / Debian / Ubuntu 各版本的重装命令、注意事项与重装后的安全处理。
原文参考:MoeClub DD 脚本
注意事项
- Vicer 脚本目前不支持重装为 CentOS 7。
- 重装系统来源于官方发行版。
- 安装过程全自动进行,一般无需 VNC 或救援模式手动介入。
- 系统安装完成后的默认用户名为
root。 - 默认密码为
MoeClub.org,安装完成后应立即修改。
常用命令
重装为 CentOS
# CentOS 6.10 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -c 6.10 -v 64 -a
# CentOS 6.10 32 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -c 6.10 -v 32 -a
重装为 Debian
# Debian 8 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 8 -v 64 -a
# Debian 9 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a
# Debian 10 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a
# Debian 11 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a
# Debian 12 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 12 -v 64 -a
重装为 Ubuntu
# Ubuntu 12.04 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 12.04 -v 64 -a
# Ubuntu 14.04 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 14.04 -v 64 -a
# Ubuntu 16.04 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 16.04 -v 64 -a
# Ubuntu 18.04 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 18.04 -v 64 -a
# Ubuntu 20.04 64 位
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a
安装过程说明
运行命令后,系统会自动开始重装。正常情况下大约 10 分钟左右可以完成,期间可通过 VNC 观察进度。
常见情况如下:
- 如果尝试安装不受支持的 CentOS 7,会直接提示不支持。
- 如果输入了不存在或不支持的系统版本,脚本会中止执行。
重装后修改 root 密码
出于安全考虑,安装完成后建议立即修改默认密码:
passwd root
然后按提示输入两次新密码即可。某些终端在输入密码时不会显示字符,这是正常现象。
验证与自查
- 重启后用
cat /etc/os-release确认系统版本与预期一致 - 用默认凭据(
root/MoeClub.org)登录后,立即执行passwd root修改密码 uname -m确认架构为 64/32 位与所选一致- 检查磁盘与网络状态:
lsblk、ip addr