2016年11月21日考试原题RHCSA与RHCE
说明:
- 培训环境需要 lab * setup,考试环境不需要;
- 先将 RHCE7.html 文件拷贝到 FOUNDATION 桌面上,然后打开做练习;
- FOUNDATION 需安中文字体。
# yum list c*font*
# yum -y install cjkuni-uming-fonts.noarch
- 做下面的实验时,先重置一下 Server 和 Desktop。
# rht-vmctl start server
# rht-vmctl start desktop
:: SELINUX
在 desktop0 和 server0 上 selinux 要求设置为 enforcing 状态
# vim /etc/selinux/config
/en yw /= p D ZZ
# cat /etc/selinux/config
# setenforce 1
# getenforce
[Desktop]
# vim /etc/selinux/config
...
SELINUX=enforcing
# grep ^SELINUX= /etc/selinux/config
# setenforce 1
# getenforce
:: 在 desktop0 和 server0 上分别设置,针对 SSH
允许 example.com 的域对 desktop0 和 server0 进行 SSH
禁止 example.org 的域对 desktop0 和 serve0 进行 SSH
# man hosts.allow | grep -A2 hosts.allow
# vim /etc/hosts.allow
sshd: .example.com
# vim /etc/hosts.deny
sshd: .example.org
[Desktop]
# man hosts.allow | grep -A2 hosts.allow
# vim /etc/hosts.allow
sshd: .example.com
# vim /etc/hosts.deny
sshd: .example.org
:: 配置端口转发
系统 server0 配置端口转发,要求如下:
在 172.25.0.0/16 网络中的系统,访问 server0 的本地端口 5423 将被转发到 80
此设置必须永久有效
2016年11月21日考试原题RHCSA与RHCE 可以到Linux公社1号FTP服务器下载
------------------------------------------分割线------------------------------------------
FTP地址:ftp://ftp1.linuxidc.com
用户名:ftp1.linuxidc.com
密码:www.linuxidc.com
在 2017年LinuxIDC.com/3月/2016年11月21日考试原题RHCSA与RHCE/
下载方法见 http://www.linuxidc.com/Linux/2013-10/91140.htm
文章评论