1.centos6启动流程
https://www.runoob.com/linux/linux-system-boot.html
2.centos7启动流程
3.centos6和centos7区别?
4.运行级别?
Centos6
0 关机
1 单用户模式 (超级权限 必须面对实体硬件)
2 暂未使用
3 字符界面(黑框)
4 暂未使用
5 图形界面
6 重启
0 6 关机 重启
3 5 字符 图形
2 4 没有使用
1 单用户
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#查看当前的运行级别
[root@locolhost ~]# systemctl get-default multi-user.target
#修改系统下次启动时候的运行级别
[root@locolhost ~]# systemctl set-default multiuser.target
2.systemd
systemctl start nginx
systemctl stop nginx
systemctl restart nginx
systemctl reload nginx
systemclt status nginx
systemctl enable nginx #下一次开机启动nginx,于当前无关
systemctl disable nginx #下一次开机不启动nginx,于当前无关
[root@locolhost ~]# #关机
shutdown -h now
poweroff
halt
init 0
systemctl poweroff
[root@locolhost ~]# #重启
reboot
shutdown -r now
init 6 systemctl reboot
4.单用户模式 超级权限 必须面对实体硬件
能正常引导进入系统
1.配置文件错误导致无法启动
2.忘记ROOT密码 ( 快照 | 单用户修改)
https://mp.weixin.qq.com/s/1f-zCq8j4gL3xiB3AV9K3A 忘记root密码
5.救援模式 系统无法正常进入,比如没有内核 比如grub被修改 比如系统崩溃
没有内核文件,只能使用救援模式进入
系统崩溃, 要保留重要的数据的时候
grub菜单出现问题, linux windows