commands for adding boot programs to different Linux systems

Source: Internet
Author: User

See http://phpcj.org/blog/%E4%B8%8D%E5%90%8Clinux%E7%B3%BB%E7%BB%9F%E6%B7%BB%E5%8A%A0%E5%BC%80%E6%9C%BA%E5%90% af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e7%9a%84%e5%91%bd%e4%bb%a4/

commands for adding boot programs to different Linux systems
Author: Breeze Date: September 16, 2011 Comment (0) View comments

Gentoo

Rc-update Add nginx Default

Centos/fedora:

Chkconfig Nginx on

Ubuntu:

Update-rc.d-f Nginx Defaults

=======================================================================================================

Detailed explanations of each run level:
0 for downtime, the machine shuts down.
1 is a single-user mode, similar to the safe mode under Win9x.
2 is multi-user mode, but there is no NFS support.
3 is the full multi-user mode and is the standard run level.
4 generally not, in some special cases you can use it to do something.
For example, you can switch to this mode to do some setup when your laptop's battery is running out.
5 is X11, into the X Window system.
6 Restart, the init 6 machine will restart.

=======================================================================================================

      1. Download the BIOS hardware and self-test, and according to the device, obtain the first available device;
      2. Read and execute the boot Loader (that is, grub, Spfdisk, and so on) of the first installation MBR;
      3. Depending on the boot loader's setup, the Kernel will start to detect the hardware and load the driver Kernel;
      4. After the hard drives succeed, the Kernel will call the INIT program, and INIT will get run-level information;
      5. Init performs/etc/rc.d/rc.sysinit files to prepare software for the business environment (e.g., Internet, time zone, etc.);
      6. Init performs the run-level of each service (script mode);
      7. Init performs/etc/rc.d/rc.local files;
      8. Init performs the end machine simulation program Mingetty to activate the login program, and finally waits for the user to log in.
Related Article

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.