the start order
1 boot kernel
OS reading kernel file under /boot directory
2 start init programe
/sbin/init it's the first program the kernel starts
when booting.
init , which can be found in /sbin/init,
is responsible for getting the system up
and running after the kernel has finished booting.
the pid is 1.
3 identify the running level
There are lots of programe need to be started after
system starting up.
[The programe in win is called service
The programe in linux is called daemon.]
and to run such programe is the main task of init process.
when the OS starting,some of the programe will be started
according the it's runlevel.
the runlevel in linux
#runlevel 0 is System halt<Do not use this for initdefault!>
#runlevel 1 is Single user mode
#runlevel 2 is Local multiuser without remote network
<e.g NFS>
#runlevel 3 is Fullmultiuser with network
#runlevel 4 is Not used
#runlevel 5 is Full multiuser with network and xdm
#runlevel 6 is Single reboot<Do not use this
for initdefault!>
init process will first read the file:
/etc/inittab
and there is an line shown how the current system starting
running level:
id:5:initdefault:
and we could change such value mannually.
and we could find the programmes in each run level:
/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
/etc/rc.d/rc3.d
/etc/rc.d/rc4.d
/etc/rc.d/rc5.d
/etc/rc.d/rc6.d
4 all the start shell are in /etc/init.d folder<contains the scripts executed by init at boot time and when the init state.>
and /etc/rcN.d are store the syble link of the shell under /etc/init.d folder
and if you need to start or stop one process mannually
the cd to the folder /etc/init.d
$/etc/init.d/apache2 restart
5 user login
参考文章:
http://www.ruanyifeng.com/blog/2013/08/linux_boot_process.html
http://www.debianadmin.com/manage-linux-init-or-startup-scripts.html
http://www.debianadmin.com/remove-unwanted-startup-files-or-services-in-debian.html
相关推荐
Linux启动过程综述Linux启动过程综述Linux启动过程综述
linux启动流程分析 linux启动流程分析
Linux启动流程 Linux启动流程 Linux启动流程
Linux启动过程
linux启动过程,了解Linux 启动过程!
Linux的启动过程 Linux的服务管理 Linux的进程管理 Linux的启动过程 BIOS自检 读取并加载硬盘MBR(主引导记录)中的启动引导器(GRUB或LILO等) 运行Linux的系统内核并检测硬件 Linux的启动过程 读取配置文件/etc/...
Linux启动过程综述.pdfLinux启动过程综述.pdfLinux启动过程综述.pdfLinux启动过程综述.pdfLinux启动过程综述.pdfLinux启动过程综述.pdf
嵌入式Linux系统的启动(很好的嵌入式linux启动过程分析)
LINUX从开机到进入系统的详细流程图示介绍。
linux系统内核启动过程详细分析,希望对学习linux的大家有帮助。
linux启动流程分析---内核解压缩过程
ARM linux启动过程分析,姚成强,孙文生,嵌入式Linux的可移植性使得我们可以在各种电子产品上看到它的身影。对于不同体系结构的处理器来说Linux的启动过程也有所不同。本文��
Linux启动流程3-3
linux启动流程分析 linux启动流程分析 linux启动流程分析
关于Linux系统的启动过程分享一下,内容是关于Linux的
* * * * * * * * 计 算 机 病 毒 护 与 防 目录页 Linux启动过程 Linux启动过程 1.内核引导 当计算机打开电源后,首先是BIOS开机自检,按照BIOS中设置的启动设备(通常是硬盘)来启动。 操作系统接管硬件以后,首先...
讲述Linux启动过程,包括引导区引导,初始化变量
Linux驱之路全集动工程师(附ARMLinux启动流程) Linux驱之路全集动工程师(附ARMLinux启动流程) Linux驱之路全集动工程师(附ARMLinux启动流程) Linux驱之路全集动工程师(附ARMLinux启动流程) Linux驱之路全集动工程师...
linux启动流程分析(linux嵌入式开发)linux启动流程分析(linux嵌入式开发)