Internet query Centsos set boot directly into the command line interface of the method are said to modify the/etc/inittab file, the file ": Id:5:initdefault:" Instead of ": Id:3:initdefault:", The default runlevel will be changed from 5 to 3, but the/etc/inittab page under CentOS7 is shown below:
# Inittab is no longer used when using systemd.## ADDING CONFIGURATION Has 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 is the 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 #
Note that the Inittab file has not been used, now CentOS7 use SYSTEMD as the new init system, and the SYSTEMD system uses "target" instead of "RunLevel", by default there are two main target: Multi-user.target: equivalent to runlevel 3[command line interface],graphical.target: equivalent to RunLevel 5[graphical interface] Set the default target to use the command: ln-sf/lib/systemd/ System/<target Name>.target/etc/systemd/system/default.target I'm here to turn CentOS7 on by default into the command line interface, run the command:
# Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.target
CentOS7 set the boot directly into the command line interface