This article only describes one way, is to use sysv-rc-conf to manage the startup of Ubuntu, such as not to let Apache boot automatically start and so on.
Sysv-rc-conf is a powerful service management program.
Background knowledge
1. Ubuntu Operating level
The Linux system runs at a specified run level at any time, and the different run level programs and services are different, the work to be done and the purpose to achieve is different, the system can switch between these operational levels to accomplish different tasks.
Ubuntu System operating level:
0 system shutdown Status
1 Single user or system maintenance status
2~5 Multi-user status
6 Restart
to view the current run level, execute the command:
RunLevel
(RunLevel shows the last run level and the current runlevel, and "N" indicates that there is no last run level.) )
to switch the run level, execute the command:
init [0123456Ss]
(that is, after the init command followed by a parameter, this parameter is the run level code to switch to the run level, such as: Shutdown with the init 0 command; Restart with the Init 6 command.) )
Linux System main boot steps:
1. Read the information from the MBR and start the boot Manager
Windows uses NTLDR as the Boot Manager if you have more than one installation in your system
version of Windows, you will need to select the system you want to enter in NTLDR.
Linux typically uses a powerful, flexible configuration of GRUB as the Boot Manager.
2. Load the system kernel and start the init process
The init process is the root process of Linux, and all system processes are its child processes.
3. The init process reads the information from the/etc/inittab file and enters the preset runlevel,
run the script under the corresponding folder for that run level in order. The script usually restarts with the start parameter
and point to a program in a system.
Typically, the startup script under the/etc/rcs.d/directory is executed first, then the
/etc/rcn.d/directory. For example, if you set the run level to 3, then it corresponds to the startup
the directory is/etc/rc3.d/.
4. Start the Xwindow server xorg based on the corresponding script in the/etc/rcs.d/folder
Xwindow is a graphical user interface system under Linux.
5. Start the login manager and wait for the user to log in
The Ubuntu system uses GDM as the login Manager by default, and you are in the Login Manager interface
After you enter your user name and password, you can log in to the system. (You can/etc/rc3.d/the
folder to find a link named S13GDM) installation sysv-rc-conf
sudo apt-get install sysv-rc-conf
using sysv-rc-conf
sudo sysv-rc-conf
The operation interface is very concise, you can use the mouse to click, you can also use the keyboard direction key positioning, with the space bar selection, "X" means to open the service. Use CTRL + N to turn the next page, use Ctrl+p to turn up a page, with Q exit.
650) this.width=650; "src=" Https://218.4.168.202/sysv-conf.png "height=" 462 "width=" 732 "alt=" Sysv-conf.png "/>
Ubuntu Admin boot entry (service)