Using sysv-rc-conf to manage the Ubuntu server boot up service

Source: Internet
Author: User
Tags linux

In Redhat, Chkconfig is used to manage services, but in Ubuntu server there is a better tool, and Chkconfig is also available. Today, for a moment, sysv-rc-conf.

Sysv-rc-conf is a powerful service management program, the Ubuntu run level Linux system at any time run at a specified run level, different run level programs and services are different, to complete the work and to achieve different purposes, the system can switch between these run levels, To complete a different job.

The running level of Ubuntu

The Linux system runs at a specified run level at all times, and different running levels of programs and services are different, the work to be done and the purpose to be achieved are different, and the system can switch between these run levels to accomplish different tasks.

Ubuntu's system Run level:

0 System shutdown Status

1 single user or system maintenance status

2~5 Multi-user status

6 reboot

To view the current run level, execute the command:

RunLevel

(RunLevel displays the last run level and the current run level, and "N" indicates that there is no last run level.) )

Switch run level, execute command:

init [0123456Ss]

(That is, after the init command followed by a parameter, which is the run-level code to switch to, such as: Shutdown with init 0 command; Restart with the Init 6 command.) )

Second, the Linux system main start step:

Read MBR information, boot boot manager,windows use NTLDR as boot Manager, if you have multiple versions of Windows installed on your system, 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.

Loading the system kernel, starting the INIT process init process is the root process of Linux and all system processes are its child processes.

The init process reads the information in the/etc/inittab file and goes to the preset run level, running the script under the corresponding folder in the run level, sequentially. The script usually starts with the start argument and points to a program in a system. Typically, the startup script under the/etc/rcs.d/directory is executed first, followed by the/etc/rcn.d/directory. For example, if you set a run level of 3, it corresponds to a startup directory of/etc/rc3.d/.

Start the Xwindow server xorg xwindow A graphical user interface system under Linux based on the corresponding script in the/etc/rcs.d/folder.

Start the login manager and wait for the user to log on to the Ubuntu system by default, GDM is used as the login manager, and you can log in to the system after you enter the username and password in the Login manager interface. (You can find a link in the/etc/rc3.d/folder named S13GDM)

Iii. installation and use of sysv-rc-conf

sudo apt-get install sysv-rc-conf

Once the installation is complete, run the sudo sysv-rc-conf command directly to open the management software, as shown below

The operating interface is very concise, you can click with the mouse, you can also use the keyboard direction key positioning, with the space bar to choose, "X" means to open the service. Use CTRL + N to flip the next page, with Ctrl+p to turn over a page, with Q exit.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.