Linux运行级别

Linux运行级别

0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode
4 - unused
5 - X11
6 - reboot (Do NOT set initdefault to this)

切换运行级别 
init 级别

查看运行级别

who -r : print current runlevel

[root@oracle ~]# who -r
         run-level 3  2018-12-13 10:55                   last=5

runlevel : 用于打印当前Linux系统的运行等级,分别是
之前的运行级别(无则显示”N”) 当前运行级别

[root@oracle ~]# runlevel
5 3

修改启动时默认运行级别

vi /etc/inittab

id:5:initdefault:

中间的 5 改成 3

posted @ 2018-12-16 23:13  Coye  阅读(147)  评论(0编辑  收藏  举报