Last update at :2024-03-08,Edit by888u
Copy the code from the web page to Xiaoji (the default system is centos7, others are not guaranteed) and wait for the restart to ping successfully, then wait another 2-5 minutes and use VNC client ip: 1 to connect to the visual installation, password 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.shRecommended site searches: US server defense, how to build a server, registered domain name query, Hong Kong hosting, US ASP space, top ten server brands, website registered domain name query, host space, domain name registration query, Korean high defense server ,
All copyrights belong to 888u unless special state
发表评论