免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 875 | 回复: 0

16 自测 [复制链接]

论坛徽章:
0
发表于 2008-09-24 11:34 |显示全部楼层
自测
下面的问题将帮助你理解本章内容。Red Hat 考试中没有多选题,本书也是如此。这些问题将考察你对本章的理解。如果你将它当作任务那是最好。不要去背诵结果,那对 Red Hat考试是无效的。一个问题可能有多种答案。
如这一章内容涉及到本书其他章节一样,这里的一些问题会需要你查看其他章节。
排错策略
1、如果你想启动进入运行级别0、2、3、4、5或6,你应该使用哪些选项?
2、如果 linux rescue 成功找到已安装的 RHEL,它会将其挂载到哪里?
RHCT 要求掌握排错的技巧
3、如果你想让网卡从 DHCP 服务器获得 IP 地址信息,你需要在 /etc/sysconfig/network-scripts/ifcfg-eth0 文件中使用哪项参数?
4、启动过程中,哪些文件与主机名配置有关?
5、如果你想重新建立一个新的 xorg.conf 配置文件,你该使用哪条命令?
6、如果你想设置 X Windows 的默认应用程序,同时工作于 GNOME 和 KDE。你要改变哪些目录和文件?
7、那个命令可以将 /dev/sda5 格式为 ext3 文件系统?
RHCE 要求掌握的排错技巧
8、下面 /boot/grub/grub.conf 中的命令行有何错误(不考虑内核版本号)?
kernel vmlinuz-2.6.18-8.el5 ro root=LABEL=/dev/hda2 rghb quiet
9、下面/boot/grub/grub.conf 中内容有何错误?
initrd /initrd 2.6.18-8.el5
10、如果你遇到 Samba 配置文件错误,以及语法错误,你使用哪条命令?
11、如果你遇到 Apache 配置文件错误,以及虚拟机的语法错误,你使用哪条命令?
12、使用哪条命令将已存在的逻辑卷 /dev/thisvg/lvol1 空间增大 1000MB,使用 /dev/sda10 设备上的可用空间。
答案:
1.  
If you do not want to boot into runlevels 0, 2, 3, 4, 5, or 6, you can boot into runlevels 1, s, or emergency; you can also boot with the init=/bin/sh command appended to the end of the kernel command line.
2.  
If linux rescue mode successfully finds an existing RHEL installation, it is mounted on the /mnt/sysimage directory.
3.  
If you want to set network card eth0 to acquire IP address information from a DHCP server, you would use the BOOTPROTO=dhcp directive in /etc/sysconfig/network-scripts/ifcfg-eth0.
4.  
The files that determine the hostname when you boot Linux are /etc/hosts and /etc/sysconfig/ network.
5.  
If you want to start from scratch and create a new xorg.conf configuration file, you could use the system-config-display command to create it in the appropriate /etc/X11 directory. Alternatively, if you use the Xorg -configure command, you'll have to copy xorg.conf from the local directory to /etc/X11.
6.  
If you want to set up a default application in the X Window that will work for both GNOME and KDE, you would change /etc/X11/xinit/xinitrc or files in the /etc/X11/xinit/xinitrc.d/ directory.
7.  
The command that formats /dev/sda5 to the ext3 filesystem is mkfs.ext3 /dev/sda5.
8.  
The line from /boot/grub/grub.conf is missing the forward slash in front of /vmlinuz-2.6.18-8.el5; it's the /boot directory as defined by the root(hd0,0) (or similar) directive. It should read as follows:
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/dev/hda2 rghb quiet
9.  
The line from /boot/grub/grub.conf is missing the .img extension at the end of the initial RAM disk file; it should read as follows:
initrd /initrd 2.6.18-8.el5.img
10.  
If you have a problem with the Samba configuration file and suspect a syntax error, you would use the testparm command.
11.  
If you have a problem with the Apache configuration file and suspect a syntax error with virtual hosts, you could use either of the following commands:
# httpd -S
# httpd -t -D DUMP_VHOSTS
12.  
The command that increases the size of an existing LV, /dev/thisvg/lvol1, by 1000MB, using space available from a properly configured /dev/sda10 device, is shown here:
# lvextend -L +1000 /dev/thisvg/lvol1 /dev/sda10
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/54648/showart_1220027.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP