Linux系统服务
发布时间:2020-12-14 00:09:38 所属栏目:Linux 来源:网络整理
导读:1.CentOS6启动流程 2.CentOS7启动流程 3.C6和C7的区别 4.运行级别C6C7 0 关机1 单用户模式 (超级权限 必须面对实体硬件)2 暂未使用3 字符界面(黑框)4 暂未使用5 图形界面6 重启0 6 关机 重启3 5 字符 图形2 4 没有使用1 单用户 System V init运行级别 system
1.CentOS6启动流程
2.CentOS7启动流程3.C6和C7的区别4.运行级别C6&C70 关机 1 单用户模式 (超级权限 必须面对实体硬件) 2 暂未使用 3 字符界面(黑框) 4 暂未使用 5 图形界面 6 重启 0 6 关机 重启 3 5 字符 图形 2 4 没有使用 1 单用户
5.运行级别的概述运行级别就是操作系统当前正在运行的功能级别 1.临时性的操作 [[email?protected] ~]# runlevel 查看级别 N 3 N 表示上一次是什么级别 3 当前系统正在运行的级别 2.[[email?protected] ~]# init 3 ? 切换到3级别上 永久操作 /etc/inittab 3.查看当前的运行级别 [[email?protected] ~]# systemctl get-default multi-user.target 4.修改系统下次启动时候的运行级别 [[email?protected] ~]# systemctl set-default multi-user.target 6.systemdsystemctl start nginx 启动nginx systemctl stop nginx 停止nginx systemctl restart nginx 重启nginx systemctl reload nginx 重新加载nginx systemclt status nginx 查看nginx状态 systemctl enable nginx 下一次开机启动nginx,于当前无关 systemctl disable nginx ??下一次开机不启动nginx,于当前无关 关机 shutdown -h now poweroff halt init 0 systemctl poweroff -------------------------------------------------------------------------------- 重启 reboot shutdown -r now init 6 systemctl reboot 7.单用户模式 超级权限 必须面对实体硬件能正常引导进入系统 2.忘记ROOT密码 ( 快照 | 单用户修改) 8.救援模式 系统无法正常进入 比如没有内核 比如grub被修改 比如系统崩溃(1)没有内核文件,只能使用救援模式进入 (2)系统崩溃,要保留重要的数据的时候 (3)grub菜单出现问题,linux windows (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |