Reprint http://blog.csdn.net/jun2016425/article/details/53100963/
1. vim/etc/default/Grub #GRUB_CMDLINE_LINUX_DEFAULT="quiet Splash" grub_cmdline_linux="text" # Uncomment to disable Graphical Terminal (Grub-pc only) grub_terminal=console2. update- Grub3. Systemctl set-default multi-4. Systemctl Start LIGHTDM
Reprint http://blog.csdn.net/zhengjie19/article/details/49069767
This article records some common uses of systemd, most of which I will use myself.
Startup level Configuration
Because of the work needs, often in the virtual machine installed all kinds of Linux systems, and most of the time, we need just a text interface, can be through the host SSH to the VM, the graphical interface does not need to play, wasted CPU and memory, through the SYSTEMCTL command configuration by default into the text interface, Just one line:
Systemctl Set-default Multi-user.target
If you want to cut back to the graphical interface, the corresponding:
Systemctl Set-default Graphical.target
Start Service on Boot
Systemctl Enable ***.service
Stop the boot start service
Systemctl Disable ***.service
Start/stop/Restart service
Systemctl Start/stop/restart ***.service
Querying service Status
Systemctl Status ***.service
Execute commands on the remote machine, like SSH [email protected] ""
systemctl-h [email protected]
Lists the system services, and the TAB key can be used to correlate all supported unit types
SYSTEMCTL-T Service
Lists the status of all loaded units
Systemctl-a
List the loaded units/sockets/timers
Systemctl list-units [Pattern]
Systemctl list-sockets [Pattern]
Systemctl list-timers [Pattern]
Query whether a service is active, take sshd.serice as an example
Systemctl is-active Sshd.service
View the configuration file for a service directly, take Sshd.serice as an example
Systemctl Cat Sshd.service
View the dependencies of a service, take Sshd.serice as an example
Systemctl list-dependencies Sshd.service
View environment variables
Systemctl show-environment
Ubuntu systemctl command and Mode switch