Before CentOS 7, you can modify the id: 5: initdefault: in the/etc/inittab to change the startup mode. However, this parameter is not specified in CentOS 7, view more/etc/inittab # inittabisnolongerusedwhenusing1_emd. # ADDI
Modify the startup interface
In the/etc/inittab
Id: 5: initdefault:
To change the startup mode, but this item does not exist in centos7.
More/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/etc/systemd/system/ctrl-alt-del.target
#
# Define EMD uses 'targets' instead of runlevels. By default, there are two main ta
Rgets:
#
# Multi-user.target: analogous to runlevel 3
# Graphical.tar get: analogous to runlevel 5
#
# To set a default target, run:
#
# Ln-sf/lib/systemd/system/ . Target/etc/systemd/system/default. ta
Rget
The file already specifies the operations to be performed to change the method
You only need Modify it to the corresponding one.