转自大佬的博客
只需一键即可重新安装CentOS7系统。(官方,纯净,安全,高效)
无需CD-ROM,无需VNC,只需要一个网络。如果您正在寻找这样的解决方案,那就试试吧。
如何使用和做
我提供两种方式供你采用。(任选其一)。
1. 进入恢复模式(推荐)或在常规模式下,查看要安装的磁盘。(以下命令需要修改到您自己的磁盘)
①如果你是VPS,你应该像这样运行
wget -qO- https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall.vhd.gz | gunzip -dc | dd of=/dev/vda
②如果你是一个专用服务器,你应该像这样运行
wget -qO- https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall.vhd.gz | gunzip -dc | dd of=/dev/sda
2. 在正常模式下执行以下命令(通过MoeClub.org提供的脚本)
wget –no-check-certificate -qO InstallNET.sh ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’ && bash InstallNET.sh -dd ‘https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall.vhd.gz’