标签:command target default determine following
To determine which target unit is used by default, run the following command:
systemctl get-default
To list all currently loaded target units, type the following command at a shell prompt:
systemctl list-units --type target
By default, the systemctl list-units
command displays only active units. If you want to list all loaded units regardless of their state, run this command with the --all
or -a
command line option:
systemctl list-units --type target --all
To configure the system to use a different target unit by default, type the following at a shell prompt as root
:
systemctl set-default name.target
To change to a different target unit in the current session, type the following at a shell prompt as root
:
systemctl isolate name.target
本文出自 “Devops” 博客,请务必保留此出处http://yanglunkai.blog.51cto.com/7745171/1580901
标签:command target default determine following
原文地址:http://yanglunkai.blog.51cto.com/7745171/1580901