服务器安装centos系统全过程,一次在实体服务器安装centos 7的过程记录

一次在实体服务器安装centos 7的过程记录第一次在实体服务器上面安装服务器(centos 7),在此记录安装过程中遇到的少量坑。

系统版本:CentOS Linux release 7.6.1810 (Core)

设置Bios

将引导设置为U盘优先启动,不同电脑型号进入bios方法不同,调整引导顺序的方式也略有差异,故不做具体详情。

编辑优盘卷标

在设置过bios为优盘优先启动后,重启,无需按任何键。将会进入如下grub菜单引导界面。Install CentOS 7Test this media & install CentOS 7Troubleshooting --> Use the ↑ and ↓ keys to change the selection.Press ‘e’ to edit the selected item,or 'c' for a command prompt.通过键盘上的上下方向键选中Install CentOS 7 ,按e,进入如下界面setparams 'Install CentOS 7' linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Centos 7 quiet initrdefi /images/pxeboot/initrd.img Press Ctrl-x to start,Ctrl-c for a command prompt or Escape to discard edits and return to the menu.Pressing Tab lists possible completions.唯一需要修改的就是linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Centos 7 quiet 这一行,将hd:后面的默认卷标改为所插入U盘的卷标名称。由于并不知道u盘的卷标名称,所以直接按ctrl+x进入相似如下界面。

256d2b27d33e12864e287ea30a3e9230.pngdracut

在这个临时的命令行界面即可以查看u盘卷标dracut:/# ls /dev |grep sdsdasda1sda2sda3sdbsdb4#重启服务器darcut:/# rebootsda表示第一块硬盘,sdb表示第二块硬盘,以此类推。sda1表示第一块硬盘下的第1个分区,sda2表示第一块硬盘下的第二个分区,以此类推。对于新添加的硬盘,系统会默认分配给他一个卷标递增的号(sda,sdb,sdc等),因而很容易判断出sdb4就是我们所插入的u盘。在重启服务器后,将再次进入安装引导界面重启过程无需按任何键Install CentOS 7Test this media & install CentOS 7Troubleshooting --> Use the ↑ and ↓ keys to change the selection.Press ‘e’ to edit the selected item,or 'c' for a command prompt.2. 上下键选中`Install CentOS 7`,按e进入编辑setparams 'Install CentOS 7' linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Centos 7 quiet initrdefi /images/pxeboot/initrd.img Press Ctrl-x to start,Ctrl-c for a command prompt or Escape to discard edits and return to the menu.Pressing Tab lists possible completions.

将linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Centos 7 quiet这一行的卷标修改为我们之前查找到的u盘卷标,即/dev/sdb4(绝对路径)。

修改过后的结果为:linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:/dev/sdb4 quiet

按ctrl+x启动服务器。最后就进入图形安装界面了,如下:

c92ec275794fbc5ae3ed485befc0f6cc.pngcentos7图形界面的安装基本就是无脑的next,不做赘述。

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值