侧边栏壁纸
博主头像
liveJQ博主等级

沒有乐趣,何来开始

  • 累计撰写 185 篇文章
  • 累计创建 68 个标签
  • 累计收到 2 条评论

重装系统自动化

liveJQ
2023-02-23 / 0 评论 / 0 点赞 / 7 阅读 / 932 字

重装 CentOS 7.9

这个已经用不了了

wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2009.qcow2
apt install -y qemu-utils
qemu-img convert -f qcow2 -O raw CentOS-7-x86_64-GenericCloud-2009.qcow2 centos7.raw.img
apt install nginx
mv centos7.raw.img /var/www/html

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/InstallNET.sh && chmod +x InstallNET.sh && ./InstallNET.sh -i ens192 --ip-addr 192.168.1.2 --ip-gate 192.168.1.1 --ip-mask 255.255.255.0 -dd 'http://localhost/centos7.raw.img'

默认 root 密码 MoeClub.org

换这个

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh && chmod +x reinstall.sh
bash reinstall.sh redhat --img https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-2009.qcow2

重装 Ubuntu 20.04

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh && chmod +x reinstall.sh
bash reinstall.sh ubuntu 20.04 && reboot

默认 root 密码 123@@@

相关资料

  1. reinstall
  2. dd
0

评论区