rhel 7 设置默认运行级别为图形

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rhel 7 设置默认运行级别为图形相关的知识,希望对你有一定的参考价值。

查看默认级别

# systemctl get-default
multi-user.target

  

# cat /etc/inittab 
# inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target
#
# systemd uses ‘targets‘ instead of runlevels. By default, there are two main targets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To view current default target, run:
# systemctl get-default
#
# To set a default target, run:
# systemctl set-default TARGET.target
#

  

设置为图形级别

# systemctl set-default graphical.target

  

以上是关于rhel 7 设置默认运行级别为图形的主要内容,如果未能解决你的问题,请参考以下文章

RHEL7运行级别和服务

RHEL7默认运行级别和终端分辨率修改

Linux运行级别

Linux 运行级别

Rhel7.2系统时间修改查看及开机运行级别的设置

linux之运行级别