Centos-7 set boot to enter the text interface (not enter the graphical interface)

Centos-7 Settings Boot to the text interface (not to the graphical interface)
: /etc/inittab = /etc/inittab = /etc/inittab = /etc/inittab = /etc/inittab = /etc/inittab = /etc/inittab = /etc/inittab

# Default runlevel. The runlevels used are:
#   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)

This file does not look the same in centos-6 as it does in centos-7:

[[email protected] ~]# uname -a
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# ll /etc/inittab
-rw-r--r--. 1 root root 511 Nov 19  2015 /etc/inittab
[[email protected] ~]# cat /etc/inittab 
# inittab is no longer used when using systemd.
# 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

There is no place to set the level.
In fact, in Centos-7, you can directly enter the text interface without entering the graphical interface by using the command setup:

[[email protected] ~]# which systemctl

You can use your own man systemctl, but don’t go too far
Here is how to set it:

[[email protected] ~]# systemctl get-default
[[email protected] ~]# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
[[email protected] ~]# systemctl get-default

Systemctl get-default is used to get the current default target.
use systemctl set – the default can be set the default target, the target can be graphical, target, multi – user. Target.
Well, that’s basically it, reboot and you’ll go straight to the text interface.
Reference source

Read More: