Day22-系统服务


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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一、开机启动流程 1、Centos6 2、Centos7 3、Centos6与Centos7区别? 二、系统的运行...
    不懂helloword阅读 307评论 0 0
  • 1.开机启动流程 CentOs 6 CentOs 7 CentOs 6与CentOs 7区别? 2.系统的运行级别...
    Demon_7636阅读 291评论 0 0
  • 今日内容 系统服务1.开机启动流程Centos6Centos7Centos6与Centos7区别?2.系统的运行级...
    JoinMyTeam阅读 239评论 0 0
  • 今日总结 1.开机启动流程 CentOS6内核的引导计算机打开后首先是BIOS开机自检,按照BIOS中设置启动设备...
    so_q阅读 202评论 0 0
  • 1.Centos6开机启动流程 内核引导(BIOS自检)——>(/boot/)——>系统初始化(init)——>建...
    UncleZ_strive阅读 273评论 0 1