- 論壇徽章:
- 0
|
自測
下面的問題將幫助你理解本章內(nèi)容。Red Hat 考試中沒有多選題,本書也是如此。這些問題將考察你對本章的理解。如果你將它當作任務那是最好。不要去背誦結(jié)果,那對 Red Hat考試是無效的。一個問題可能有多種答案。
如這一章內(nèi)容涉及到本書其他章節(jié)一樣,這里的一些問題會需要你查看其他章節(jié)。
排錯策略
1、如果你想啟動進入運行級別0、2、3、4、5或6,你應該使用哪些選項?
2、如果 linux rescue 成功找到已安裝的 RHEL,它會將其掛載到哪里?
RHCT 要求掌握排錯的技巧
3、如果你想讓網(wǎng)卡從 DHCP 服務器獲得 IP 地址信息,你需要在 /etc/sysconfig/network-scripts/ifcfg-eth0 文件中使用哪項參數(shù)?
4、啟動過程中,哪些文件與主機名配置有關(guān)?
5、如果你想重新建立一個新的 xorg.conf 配置文件,你該使用哪條命令?
6、如果你想設置 X Windows 的默認應用程序,同時工作于 GNOME 和 KDE。你要改變哪些目錄和文件?
7、那個命令可以將 /dev/sda5 格式為 ext3 文件系統(tǒng)?
RHCE 要求掌握的排錯技巧
8、下面 /boot/grub/grub.conf 中的命令行有何錯誤(不考慮內(nèi)核版本號)?
kernel vmlinuz-2.6.18-8.el5 ro root=LABEL=/dev/hda2 rghb quiet
9、下面/boot/grub/grub.conf 中內(nèi)容有何錯誤?
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 |
|