Linux启动顺序

来源:互联网 发布:淘宝上面名龙堂好吗 编辑:程序博客网 时间:2024/06/08 22:39

inux boot sequence

一、load bios(硬件信息自检)

二、read MBR's config to load OS (MBR:硬盘主引导区,第一扇区,第一磁头。。。)

三、load the kernel of the OS(根据信息启动对应的操作系统,找到系统内核,启动系统)

四、init process start…… (系统启动第一个进程)

五、execute /etc/rc.d/sysinit(etc目录下存储系统的启动程序和配置文件,“rc”表示运行命令。“d”

    表示系统后台服务程序)

六、start other modules(/etc/moduls/config)(启动内存管理,硬盘管理,网络管理等模块)

七、execute the run level script:(在/etc/inittab中修改)

    对应etc目录下的目录:rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d;

   (0:停机;1:单用户(root);2:多用户(没有NFS);3:多用户

   (有NFS);4:系统未启用,留给用户;5:图形界面;6:系统正常关闭并重新启动)

八、execute /ect/rc.d/rc.local(配置tomcat等随机器自启动)

九、execute /bin/login

十、shell started