Contents[Show]

1. Change runlevel in CentOS 7

1.1. Determine the current runlevel the system is configured to boot to

# systemctl get-default

multi-user.target                   ; The same as runlevel 3 in CentOS 6
graphical.target                    ; The same as runlevel 5 in CentOS 6

1.2. Change default runlevel permanently

# systemctl set-default multi-user.target                  ; Boots CLI as default

# systemctl set-default graphical.target                   ; Boots GUI as default

1.3. Activate a run level without rebooting

# systemctl isolate graphical.target                   ; Start the GUI

# systemctl isolate multi-user.target                  ; Start the CLI