CentOS 7关闭图形桌面开启文本界面

1,命令模式
systemctl set-default multi-user.target


2,图形模式
systemctl set-default graphical.target

 

CentOS 7 巨大变动之 systemd 取代 SysV的Init

inittab is no longer used when using systemd.
#
# ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.
#
# Ctrl-Alt-Delete is handled by /etc/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 set a default target, run:
#
# ln -sf /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
#

 

posted on 2015-03-28 19:51  imsoft  阅读(2149)  评论(0编辑  收藏  举报

导航