简体   繁体   English

Linux-系统启动时会自动运行哪些进程

[英]Linux - What processes run automatically at the system startup

I have a somewhat noob-ish question regarding the system startup in linux (Scientific Linux). 关于linux(Scientific Linux)中的系统启动,我有一个有点陌生的问题。

What processes run automatically at the system startup? 哪些进程在系统启动时自动运行?

As far as i have researched, Linux has 7 init Run Levels(counted from 0 to 6) and on the 3rd level(Full multiuser mode) it initializes all the scripts(system startup scripts) located in the /etc/rc.d/rc3.d/ folder. 据我研究,Linux有7个init运行级别(从0到6),在第3个级别(完全多用户模式),它初始化/etc/rc.d/中的所有脚本(系统启动脚本)。 rc3.d /文件夹。

Am i right, wrong? 我说的对不对? Please explain 请解释

  1. The BIOS performs hardware-platform specific startup tasks BIOS执行特定于硬件平台的启动任务
  2. Once the hardware is recognized and started correctly, the BIOS loads and executes the partition boot code from the designated boot device, which contains phase 1 of a Linux boot loader. 识别并正确启动硬件后,BIOS从指定的引导设备加载并执行分区引导代码,该引导设备包含Linux引导加载程序的第1阶段。 Phase 1 loads phase 2 (the bulk of the boot loader code). 阶段1加载阶段2(引导加载程序代码的大部分)。 Some loaders may use an intermediate phase (known as phase 1.5) to achieve this since modern large disks may not be fully readable without further code. 一些加载器可能会使用中间阶段(称为阶段1.5)来实现此目的,因为如果没有更多代码,现代大型磁盘可能无法完全读取。
  3. The boot loader often presents the user with a menu of possible boot options. 引导加载程序通常会向用户显示可能的引导选项菜单。 It then loads the operating system, which decompresses into memory, and sets up system functions such as essential hardware and memory paging, before calling start_kernel(). 然后,它会在调用start_kernel()之前加载操作系统,然后将其解压缩到内存中,并设置系统功能,例如基本硬件和内存分页。
  4. start_kernel() then performs the majority of system setup (interrupts, the rest of memory management, device initialization, drivers, etc.) before spawning separately, the idle process and scheduler, and the Init process (which is executed in user space). 然后,start_kernel()执行大多数系统设置(中断,其余的内存管理,设备初始化,驱动程序等),然后分别生成,空闲进程和调度程序以及Init进程(在用户空间中执行)。
  5. The Init process executes scripts as needed that set up all non-operating system services and structures in order to allow a user environment to be created, and then presents the user with a login screen. Init进程将根据需要执行脚本,以设置所有非操作系统服务和结构,以允许创建用户环境,然后为用户提供登录屏幕。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM