一次在实体服务器安装centos 7的过程记录
来源:     阅读:832
云上智慧
发布于 2020-04-24 17:23
查看主页

一次在实体服务器安装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. 
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.
dracut

在这个临时的命令行界面即可以查看u盘卷标

dracut:/# ls /dev |grep sdsdasda1sda2sda3sdbsdb4#重启服务器darcut:/# reboot

sda表示第一块硬盘,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启动服务器。

centos7

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

免责声明:本文为用户发表,不代表网站立场,仅供参考,不构成引导等用途。 系统环境 服务器应用
相关推荐
年薪50w的BATAndroid架构师知识体系详解
从10个角度来检测自己是不是一个合格的前台工程师
程序员请假不被批准,隔天公司服务器出问题,结果领导蒙了
CSS 图片
10-2 控制进程
首页
搜索
订单
购物车
我的