展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

linux系统启动

  • 系统运行级别
运行级别0:系统停机状态,系统默认运行级别不能设为0,否则不能正常启动
运行级别1:单用户工作状态,root权限,用于系统维护,禁止远程登录
运行级别2:多用户状态(没有NFS)
运行级别3:完全的多用户状态(有NFS),登录后进入控制台命令行模式
运行级别4:系统未使用,保留
运行级别5:X11控制台,登录后进入图形GUI模式
运行级别6:系统正常关闭并重启,默认运行级别不能设为6,否则不能正常启动

# 查询系统运行级别
[root@localhost ~]# runlevel
N 3
  • 关机/重启
shutdown -[c | h | r] [now | 具体时间]
-c 取消前一个关机命令
-h 关机
-r 重启

shutdown –h now 立马关机

shutdown –h 20:25 系统会在今天20:25关机

shutdown –h +10 十分钟后关机

shutdown –r now 系统立马重启

shutdown –r +10 系统十分钟后重启
  • 关机
halt
poweroff
init 0
  • 重启
reboot
init 6
  • 退出登录
logout
posted @ 2024-04-28 12:58  DogLeftover  阅读(14)  评论(0)    收藏  举报