How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
来源:互联网 发布:mac队全灭事件真相 编辑:程序博客网 时间:2024/05/20 23:58
During the boot process for Redhat 9.0 and Fedora Core systems the init command opens the /etc/inittab file to decide what "runlevel" the system should be booted to. The /etc/inittab file is a plain text file that can be opened with your favorite text editor.
The relavent section of a sample /etc/inittab file is as follows:
The key line in the example above is:
This tells the init process that the default run level for the system is run level 3. To change to a different run level simply change the number and save the /etc/inittab file. Before doing this, however, be absolutely sure you know which run level you want. Selecting the wrong runlevel can have serious consequences. To help with this a detailed description of the individual run levels is outlined in the table below:
Table 1: Linux Runlevel Descriptions
RunlevelRunlevel DescriptionRunlevel 0The halt runlevel - this is the runlevel at which the system shuts down. For obvious reasons it is unlikely you would want this as your default runlevel.Runlevel 1Single runlevel. This causes the system to start up in a single user mode under which only the root user can log in. In this mode the system does not start any networking or X windowing, X or multi-user services. This run level is ideal for system administrators to perform system maintenance or repair activities.Runlevel 2Boots the system into a multi-user mode with text based console login capability. This runlevel does not, however, start the network.Runlevel 3Similar to runlevel 2 except that networking services are started. This is the most common runlevel for server based systems that do not require any kind of graphical desktop environment.Runlevel 4Undefined runlevel. This runlevel can be configured to provide a custom boot state.Runlevel 5Boots the system into a networked, multi-user state with X Window System capability. By default the graphical desktop environment will start at the end of the boot process. This is the most common run level for desktop or workstation use.Runlevel 6Reboots the system. Another runlevel that you are unlikely to want as your default.
The relavent section of a sample /etc/inittab file is as follows:
# 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:3:initdefault:
# 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:3:initdefault:
The key line in the example above is:
id:3:initdefault:
This tells the init process that the default run level for the system is run level 3. To change to a different run level simply change the number and save the /etc/inittab file. Before doing this, however, be absolutely sure you know which run level you want. Selecting the wrong runlevel can have serious consequences. To help with this a detailed description of the individual run levels is outlined in the table below:
Table 1: Linux Runlevel Descriptions
RunlevelRunlevel DescriptionRunlevel 0The halt runlevel - this is the runlevel at which the system shuts down. For obvious reasons it is unlikely you would want this as your default runlevel.Runlevel 1Single runlevel. This causes the system to start up in a single user mode under which only the root user can log in. In this mode the system does not start any networking or X windowing, X or multi-user services. This run level is ideal for system administrators to perform system maintenance or repair activities.Runlevel 2Boots the system into a multi-user mode with text based console login capability. This runlevel does not, however, start the network.Runlevel 3Similar to runlevel 2 except that networking services are started. This is the most common runlevel for server based systems that do not require any kind of graphical desktop environment.Runlevel 4Undefined runlevel. This runlevel can be configured to provide a custom boot state.Runlevel 5Boots the system into a networked, multi-user state with X Window System capability. By default the graphical desktop environment will start at the end of the boot process. This is the most common run level for desktop or workstation use.Runlevel 6Reboots the system. Another runlevel that you are unlikely to want as your default.
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- how to change the default mode of a linux device
- How to Change the Hostname of a Linux System
- How to Change the Hostname of a Linux System
- How to Change the Default System Fonts
- How To Change the Background Color of a Tab Control
- How to change the color of a CEikLabel
- How to change the default location of the Office 2010 Document Cache
- how to edit the grub to change the sequance of system
- How to programmatically change the default view of an InfoPath form
- Windows - How to change default system font in Windows 10
- how to change the port of tomcat
- Securing a Default Install of RedHat Linux 8.0/9.0
- How to: Change the Installation Path of an Office Solution (2007 System)
- How to change the SQL Server 2008 default install path
- How to change the SQL Server 2008 default install path
- How to change the default browser in Visual Studio
- how to change the implicit default settings in django 1.6
- KeyWordHelper-关键字提取类(注:使用第三方组件DictSeg.dll)
- Java 线程池的原理与实现
- android Theme level 11 使用总结
- SHFileOperation函数
- 简述四种关联映射
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- hibernate 的SessionFactory的getCurrentSession 与 openSession() 的区别
- 对于struct file_operations中ioctl消失的学习笔记
- 值类型与引用类型
- Xml CData的使用 获取原始的节点内容
- android Theme使用总结
- .NET 处理Excel 2003+2007格式最佳方案
- 为什么我这么低端:一个程序员的自我修养
- YUV和RGB介绍