1. use the command to switch to the running level/target systemctlisolatemultiuser.tar get // restart get // to the running level 3. this command has no effect on the next startup and is equivalent to teli.
1. use commands to switch the running level/target
# Systemctl isolate multi-user.target // switch to run Level 3, this command has no effect on the next start, equivalent to telinit 3 # Systemctl isolate runlevel3.target // switch to runtime level 3. this command has no effect on the next startup and is equivalent to telinit 3. # Systemctl isolate graphical.tar get // switch to runtime level 5. this command has no effect on the next startup and is equivalent to telinit 5 # Systemctl isolate runlevel5.target // switch to runtime level 5. this command has no effect on the next startup and is equivalent to telinit 5. |
2. modify the default running level/target
You can run the following command to set the text or graphic mode to be enabled by default.
# Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get // text mode # Ln-sf/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get // graphic mode |
When the machine is started, the target is default.target, which links to graphical.tar get (roughly equivalent to the original running level 5 ). You can change the default running level through kernel parameters (see Chapter 1st ).
You can also run the systemctl command to set the text or graphic mode to be enabled by default at startup.
# Systemctl-f enable multi-user.target // text mode # Systemctl-f enable graphical.tar get // graphic mode |