今日整理rhcsa热证参考手册:

rhcsa中需要用到两台主机,一台为服务节点, 一台为操作节点:


第一步需要破解超级用户密码,默认的密码是随机的,需要你破解超级用户密码进入操作系统,也就是说如果进不去系统,那么就看不到题目,就直接挂掉了: 在开机的时候选择正常启动时按e 找到Linux16这一行 按end键定位到行末尾:加上rd.break 按Ctrl+x 按退出 exit exit 系统重新加载内核,加载成功后便可输入新密码进入系统:

进入系统后开始配置基本环境:

配置网卡: 开机启动项勾选, 编辑网卡配置 重启网络服务:


第一题 修改root密码,我们已经做过了, 运行评分脚本: 第一题已经pass 继续做题:


第二题: 查看selinux状态:

永久修改,修改配置文件:

运行评分脚本:


第三题: 配置yum源: [root@server0 ~]# yum-config-manager --add-repo=http://cla***oom.example.com/content/rhel7.0/x86_64/dvd Loaded plugins: langpacks adding repo from: http://cla***oom.example.com/content/rhel7.0/x86_64/dvd

[cla***oom.example.com_content_rhel7.0_x86_64_dvd] name=added from: http://cla***oom.example.com/content/rhel7.0/x86_64/dvd baseurl=http://cla***oom.example.com/content/rhel7.0/x86_64/dvd enabled=1

[root@server0 ~]#

成功添加! 评分:


第四题: 查看逻辑卷: 可以看到卷组的空间也不够, 那么就要对卷组扩容: 看到物理卷里的容量也不够,

那就要新建分区:

w保存退出 立即生效 把分区变为物理卷:

把sdb2物理卷加入到vg1卷组中: 给逻辑卷扩容:

调整逻辑卷大小: 格式化逻辑卷: 评分:


第五题:

[root@server0 ~]# groupadd -g 40000 adminuser [root@server0 ~]# useradd -G adminuser natasha [root@server0 ~]# useradd -G adminuser harry [root@server0 ~]# useradd -s /sbin/nologin sarah [root@server0 ~]# echo 'glegunge' | passwd --stdin natasha Changing password for user natasha. passwd: all authentication tokens updated successfully. [root@server0 ~]# echo 'glegunge' | passwd --stdin ha halt harry
[root@server0 ~]# echo 'glegunge' | passwd --stdin harry Changing password for user harry. passwd: all authentication tokens updated successfully. [root@server0 ~]# echo 'glegunge' | passwd --stdin sarah Changing password for user sarah. passwd: all authentication tokens updated successfully. [root@server0 ~]# 评分:


第六题:

先拷贝文件: 评分:


第七题:

评分:


第八题:

评分:


**第九题: ** 安装成功就升级成功了 评分:


第十题: 安装软件 配置ldap 打开图形界面 稍等配置完成! 登录测试,测试完成 评分:


第十一题:

安装软件:

启动服务,并设为开机自启; 配置自动挂载: 需要编辑两个配置文件:

创建挂载目录: mkdir /home/guests 重启服务: 评分:


第十二题:

评分:


第十三题:

评分:


第十四题: 评分:


第十五题:

初始化为交换分区的格式: 设置自动挂载: 立即生效:

评分:


第十六题:


第十七题:

评分:


第十八题:

n创建分区,一路回车

w保存退出, 立刻生效 已经存在 转换为物理卷 创建一个卷组 创建一个逻辑卷: 格式化为xfs格式 创建挂载目录: 查看lvm2的UUID 编辑开机自动挂载 评分:


重启下执行评分:


[root@server0 Desktop]# !lab lab examrhcsa grade

Grading the No.1 question

Checking root password... PASS

Grading the No.2 question

Check Set Selinux PASS

Grading the No.3 question

Check yum repo config PASS

Grading the No.4 question

Checking size of lvm1 LV... PASS Checking size of lvm2 LV... PASS Checking size of lvm1 filesystem... PASS Checking size of lvm2 filesystem... PASS

Grading the No.5 question

Check Group adminuser create PASS Check User natasha create PASS Check User harry create PASS Check User sarah create PASS Check natasha's Password PASS Check harry's Password PASS Check sarah's Password PASS

Grading the No.6 question

Check Set file or directory PASS

Grading the No.7 question

Check Set user crontab PASS

Grading the No.8 question

Check Set directory gid PASS

Grading the No.9 question

Check Install new Kernel PASS

Grading the No.10 question

Check Use LDAP and Kerberos PASS

Grading the No.11 question

Check AUTOFS PASS

Grading the No.12 question

Check Time sync server set PASS

Grading the No.13 question

Check sysconfig tar PASS

Grading the No.14 question

Check user alex create PASS Check user alex password PASS

Grading the No.15 question

Check swap partision PASS Check Swap partision id PASS Check swap persitent mount in fstab PASS

Grading the No.16 question

Check ira file FAIL

Grading the No.17 question

Check grep result file PASS

Grading the No.18 question

Checking size of lvm1 LV... PASS Checking size of lvm2 LV... PASS Checking size of lvm1 filesystem... PASS Checking size of lvm2 filesystem... PASS [root@server0 Desktop]#


致此,rhcsa认证试题已经全部解析完毕。