码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-06-19 19:48:00      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:logs   设置   sed   运行级别   systemctl   pre   instead   级别   运行   

查看默认级别

# 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 设置默认运行级别为图形

标签:logs   设置   sed   运行级别   systemctl   pre   instead   级别   运行   

原文地址:http://www.cnblogs.com/abclife/p/7049929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!