Common linux Files-general Linux technology-Linux technology and application information. For more information, see the following section. 1. Use vi/etc/grub. conf to open the grub. conf configuration file. You can see
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a/boot partition. This means that
# All kernel and initrd paths are relative to/boot/, eg.
# Root (hd0, 0)
# Kernel/vmlinuz-version ro root =/dev/VolGroup00/LogVol00
# Initrd-version.img/initrd
# Boot =/dev/sda
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu
Title Red Hat Enterprise Linux Server (2.6.18-53. el5xen)
Root (hd0, 0)
Kernel/xen.gz-2.6.18-53. el5 crashkernel = 128M @ 16 M
Module/vmlinuz-2.6.18-53.el5xen ro root =/dev/VolGroup00/LogVol00 rhgb quiet
Module/initrd-2.6.18-53.el5xen.img
Title Red Hat Enterprise Linux Server-base (2.6.18-53. el5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.18-53.el5 ro root =/dev/VolGroup00/LogVol00 rhgb quiet
Type: quit To exit Vim
The main modification item of this directory is
Default = 0 (default startup system)
Timeout = 5 (boot time setting)
2. Use the more/etc/initab command to configure the system startup.
#
# Inittab This file describes how the INIT process shocould set up
# The system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
#0-halt (Do NOT set initdefault to this)
#1-Single user mode
#2-Multiuser, without NFS (The same as 3, if you do not have networking)
#3-Full multiuser mode
#4-unused
#5-X11
#6-reboot (Do NOT set initdefault to this)
#
Id: 5: initdefault:
# System initialization.
Si: sysinit:/etc/rc. d/rc. sysinit
# Trap CTRL-ALT-DELETE
Ca: ctrlaltdel:/sbin/shutdown-t3-r now
# When our UPS tells us power has failed, assume we have a few minutes
# Of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
Pf: powerfail:/sbin/shutdown-f-h + 2 "Power Failure; System Shutting Down"
# If power was restored before the shutdown kicked in, cancel it.
Pr: 12345: powerokwait:/sbin/shutdown-c "Power Restored; Shutdown Cancelled"
# Run gettys in standard runlevels
1: 2345: respawn:/sbin/mingetty tty1
2: 2345: respawn:/sbin/mingetty tty2
3: 2345: respawn:/sbin/mingetty tty3
4: 2345: respawn:/sbin/mingetty tty4
5: 2345: respawn:/sbin/mingetty tty5
6: 2345: respawn:/sbin/mingetty tty6
# Run xdm in runlevel 5
X: 5: respawn:/etc/X11/preofdm-nodaemon
3./etc/sysconfig/network
The following parameters are displayed:
NETWORKING = yes
NETWORKING_IPV6 = no
HOSTNAME = localhost. localdomain
[Root @ localhost sysconfig] #
[Root @ localhost sysconfig] #
Where:
NETWORKING indicates whether the network is configured
HOSTNAME indicates the Host Name of the server.
GETWAY indicates the IP address of the Network Gateway.
FORWARD_IPV4 indicates whether IP Forwarding is enabled.
GETWAYDEV indicates the name of the network device.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service