Key Non-network /etc/sysconfig Files
时间:2005-11-18 来源:rickyweiwei
见下表
File in the /etc/sysconfig Directory |
Description |
---|---|
clock |
Contains defaults for the system clock, including time zone, UTC, and ARC (Alpha CPU-based) settings. If UTC=true, the BIOS is set to Greenwich Mean Time. |
firstboot |
If RUN_FIRSTBOOT=YES, then you can start the First Boot process with the firstboot command, if you're in runlevel 5. |
gpm |
Points to the mouse device, usually /dev/mouse. |
grub |
Lists the hard disk with your /boot drive, assuming you're using the GRUB boot loader. |
harddisks |
Supports settings for special hard disks. |
hwconf |
Lists peripherals detected by kudzu. Do not edit this file! |
i18n |
Sets the default language. |
iptables |
Includes the iptables firewall commands run when you boot Linux. |
irda |
Controls infrared devices |
keyboard |
Contains keyboard configuration data:KEYBOARDTYPE, usually 'pc' and KEYTABLE, usually 'us'. |
mouse |
Contains mouse configuration data:FULLNAME describes the mouse type.MOUSETYPE lists the generic model such as IMPS2, msbm, or Microsoft. If XEMU3=yes, you have a two-button mouse set to emulate a third button.If WHEEL=yes, your mouse has a scroll wheel. |
pcmcia |
Contains PCMCIA configuration data. If PCMCIA=yes, Linux loads PCMCIA modules on boot. |
Time is of the essence on the Red Hat exams. It's fastest if you know how to configure these systems directly using text commands or by directly editing the key configuration file. However, if you forget how to manage one or two configuration commands or files, the Red Hat graphical tools can be a lifesaver.
RHEL4中使用system-config-[time、keyboard、mouse、services等 ]
The chkconfig command gives you a simple way to maintain different runlevels within the /etc/rc.d directory structure. With chkconfig, you can add, remove, and change services, list startup information, and check the state of a particular service. For example, you can check the runlevels where the sendmail service is set to start with the following command:
# chkconfig --list sendmail
sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
which indicates that sendmail is configured to start in runlevels 2, 3, 4, and 5. If you want to turn the sendmail service off for runlevel 4, execute the following command:
# chkconfig --level 4 sendmail off
Now sendmail is configured to run only on runlevels 2, 3, and 5. To turn it back on, you run the same command, substituting on for off. With chkconfig, you can also add or delete services with the --add and --del switches. Installing a service sets up the appropriate links within the /etc/rc.d directory hierarchy. Uninstalling that service removes the associated links from the same hierarchy.
安装一个服务就是设定在/etc/rc.d适当的链接,而卸载是从/etc/rc.d移走适当的链接
When you configure or repair a service, use chkconfig (or a related utility such as system-config-services) to make sure that the service is activated at the appropriate runlevels. Otherwise, you may not get credit for your work.