centos 6.x 远程重新安装
注意: 本文使用的为公网源 所以重装的机器需要能连公网,如果不能连接公网你需要搭建私有源 登录到需要重装系统的centos上 下载启动文件 本文安装的为centos6.5 根据不同版本下载不同的文件 wget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/vmlinuz wget http://mirrors.aliyun.com/centos/6.5/os/x86_64/images/pxeboot/initrd.img 将下载的文件复制到/boot 目录 cp vmlinuz /boot/vmlinuz.centos.pxe cp initrd.img /boot/initrd.img.centos.pxe 安装grub yum install grub -y 添加安装启动项 编辑启动菜单 vim /boot/grub/menu.lst 添加 title CentOS 6.5 VNC Installation root (hd0,0) kernel /vmlinuz.centos.pxe vnc vncpassword=password headless ip=127.0.0.1 netmask=255.255.255.0 gateway=127.0.0.1 dns=114.114.114.114