Centos Service Manager: systemd and init run in parallel. (Systemctl and service)
MBR (Master Boot Record) only occupies 446 bytes, and the other 64 bytes are Disk Partition Table (DPT)
(1) Load BIOS
(2) Read MBR (Master Boot Record)
(3) GRUB boot
(4) Load Kernel
(5) Set the run level (init0-init6)
(6) Load rc.sysinit (linux system initialization)
(7) Load the kernel module
(8) Start the run-level program
(9) Read the rc.local file
(10) Execute /bin/login program
The startup process of CentOS7 and CentOS6 is similar, except that the init program is changed to systemd, so I will explain in detail the startup process after systemd
Including mounting the system in the /etc/fstab file, after mounting at this time, you can switch to the root directory
On the surface of centos7, there is the concept of "run level". In fact, it is to be compatible with previous systems. Each so-called "run level" has a corresponding soft connection point. The default startup level is /etc/systemd/system/default. target, according to its point, you can find which mode the system will enter:
· 0 ==> runlevel0.target, poweroff.target
· 1 ==> runlevel1.target, rescue.target
· 2 ==> runlevel2.target, multi-user.target
· 3 ==> runlevel3.target, multi-user.target
· 4 ==> runlevel4.target, multi-user.target
· 5 ==> runlevel5.target, graphical.target
· 6 ==> runlevel6.target, reboot.target
Is it familiar? Yes, it is called rc.sysint program on CentOS6, which initializes the system and basic.target prepares the operating system
Getty.target is also familiar to us. It is the systemd object that starts the terminal. If at this step, the system has not been designated to start the graphical desktop, you can end here, if you want to start the graphical interface, you need to start the desktop program on this basis
CentOS6, 7 startup difference
System startup and server daemon process manager, which is different from centos5's Sysv init, centos6's Upstart (made by Ubuntu). Systemd was first proposed by an employee of Redhat. After the kernel is started, all services and everything will be systemd. Takeover, the kernel is only used to manage hardware resources, which is equivalent to the kernel being emptied, so Linus is very dissatisfied with Redhat.
Root is also called super administrator. Only users with Uid of 0 can be called super administrators.
LinuxCentos6 users are divided into three types, as follows:
LinuxCentos7 users are divided into three types, as follows:
Linux user regulations
Recommended Posts