优惠发布
商家八卦

oracle永久小鸡在线重装系统

将网页中代码复制到小鸡中(默认系统centos7方可,其他 不做保证)
等待重启可以ping通后,再次等待2-5分钟
使用VNC客户端
ip:1  进行连接可视化安装,密码12345678

yum -y install wget vim lsof net-tools
cat << EOF >/boot/Reinstall.sh
#!/bin/bash
rm -rf /boot/initrd77.img /boot/vmlinuz77
wget -P /boot/ http://vault.centos.org/7.0.1406/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img
wget -P /boot/ http://vault.centos.org/7.0.1406/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz77
cat << EOFEOF>/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 \\\$0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "VNCInstallCentos7" {
    set root='(hd0,gpt3)'
    linuxefi /boot/vmlinuz77 inst.vnc inst.vncpassword=12345678 inst.headless ip=dhcp nameserver=114.114.114.114 inst.repo=http://vault.centos.org/7.0.1406/os/x86_64/ inst.lang=en_US inst.keymap=us
    initrdefi /boot/initrd77.img
}

EOFEOF
#sed -i 's/GRUB_DEFAULT=saved/g' /etc/default/grub
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub2-reboot VNCInstallCentos7
reboot
EOF
bash /boot/Reinstall.sh
未经允许不得转载:主机资讯-VPS商家前沿资讯 » oracle永久小鸡在线重装系统