
1.2 项目解决方案与实施
任务1 安装CentOS7 Linux系统
安装前先在目标系统上安装virtualbox虚拟机,可以在www.virtualbox.org网站免费下载virtualbox虚拟机。安装后如图1-3所示。

图1-3 在virtualbox安装CentOS7 Linux系统
然后单击如图1-3所示的“新建”按钮,创建一个Linux类型的Red Hat 32bit版本虚拟电脑,然后单击“启动”按钮(如图1-3所示),选择安装CentOS7的镜像文件,如图1-4所示,进入CentOS7安装开始界面。

图1-4 安装CentOS7——启动盘选择界面
选择安装方式,我们在这里选择默认的安装方式,如图1-5所示,使用光标键选择第一种安装方式,按回车键,继续安装。系统开始检测系统硬件、系统启动引导,并在屏幕上提示相关信息,如图1-6所示,完毕后弹出一个语言选择窗口,如图1-7所示。

图1-5 安装CentOS7——选择安装方式

图1-6 CentOS7安装程序检测硬件与系统引导中

图1-7 选择系统所采用的语言
在图1-7中,单击左侧“中文Chinese”选项,并在右侧界面选择“简体中文(中国)”;单击右下侧“继续”按钮,进入安装信息摘要界面,如图1-8所示。

图1-8 安装信息摘要界面
在图1-8所示“安装信息摘要”里,依次设置相关选项,这里先单击“软件选择”选项,并参考图1-9所示的设置进行配置,选择好要安装的软件集合,单击左上侧“完成”按钮,返回到图1-8所示安装信息摘要界面。

图1-9 安装软件集选择
接着单击“安装位置”选项,进入如图1-10所示的安装目标位置界面;选中要安装Linux系统的硬盘,并选中“我要配置分区”选项,单击左上侧“完成”按钮,进入图1-11所示的手动分区设置界面,在这里选择“标准分区”方案,并单击下方的“+”按钮,依次创建swap交换空间,大小可设置为2~4GB;创建根分区,大小可设置为10~20GB,文件类型可选择ext4;依次参考图1-12至图1-14所示。

图1-10 安装目标位置设置界面

图1-11 手动分区设置

图1-12 添加交换分区

图1-14 分区设置完成摘要

图1-13 添加根分区
单击左上侧“完成”按钮,返回图1-15所示界面,可依次设置好键盘属性、网络和主机名及语言支持,然后单击右下侧“开始安装”按钮,进入如图1-16所示的开始安装进程界面。在这里可以设置好根用户密码,如图1-17所示,并可以添加其他用户,如图1-18和图1-19所示。直至完成CentOS7系统的安装,如图1-20所示。系统安装完成后,重启系统。

图1-15 安装信息完成摘要

图1-16 启动系统软件包安装

图1-17 设置根用户密码

图1-18 创建新的用户及设置密码

图1-19 根密码及其他用户创建完成

图1-20 CentOS7安装完成