Centos 7 修改默认的运行级别

Runlevel System State
  0 Halt the system
  1 Single user mode
  2 Basic multi user mode
  3 Multi user mode
  5 Multi user mode with GUI
  6 Reboot the system
  S, s Single user mode

[root@wode003 ~]# cat /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 /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:


Change default runlevel
  systemctl set-default multi-user.target


原文地址:https://www.cnblogs.com/kzwrcom/p/6485615.html