企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 3.1 linux启动过程分析 分析启动过程的主要目的是为了以后设置oarcle数据库的自启动级自动关闭。 Linux的启动过程大致可以分为以下步骤。 1. 机器加点自检 2. 启动Grub引导程序 3. 启动init进程 ## 3.1.1 grub.conf文件 grub程序读取/boot/grub/grub.conf文件,在屏幕上显示此配置文件中的可启动内核的列表。根据在grub启动菜单中用户所选择的内核,转到磁盘相应位置,加载内核。 下面是笔者机器上grub.conf文件的内容: ``` [root@localhost ~]# grep SwapTotal /proc/meminfo SwapTotal: 2097148 kB [root@localhost ~]# cd /boot/grub [root@localhost grub]# pwd /boot/grub [root@localhost grub]# ls splash.xpm.gz [root@localhost grub]# ls -a . .. splash.xpm.gz [root@localhost grub]# cat grub.conf cat: grub.conf: 没有那个文件或目录 [root@localhost grub]# ``` ## 3.1.2 initab文件 下面解释/etc/initab文件中每部分的内容; ``` [root@localhost grub]# cat /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM. # # Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target # # systemd uses 'targets' instead of runlevels. By default, there are two main targets: # # multi-user.target: analogous to runlevel 3 # graphical.target: analogous to runlevel 5 # # To view current default target, run: # systemctl get-default # # To set a default target, run: # systemctl set-default TARGET.target # ``` 这里就够了