Today, the official version of rhel7 is installed, and the default running level is not modified in the familiar inittab. Open the inittab as follows:
[[email protected] init.d]# vi /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## 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
No familiar ID: 5: initdefault in the middle
Rhel7 uses systemd to create a symbolic link pointing to the default running level.
The modification method is as follows:
1. delete an existing Symbolic Link
----------------------------------------------------------------------------------
Rm/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
2. The default level is 3 (text mode)
----------------------------------------------------------------------------------
Ln-SF/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
Or the default level is 5 (graphic mode)
----------------------------------------------------------------------------------
Ln-SF/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
3. Restart
----------------------------------------------------------------------------------
Reboot
----------------------------------------------------------------------------------