linux systemd
How to configure Linux (am using Fedora 21) managed by systemd to boot to console (init 3) mode?
如何配置由systemd管理的Linux (使用Fedora 21进行启动)以引导至控制台(初始3)模式?
systemd has the concept of targets as a more flexible replacement for runlevels in sysvinit.
systemd具有目标的概念,可以更灵活地替代sysvinit中的运行级别。
Runlevel 3 is emulated by multi-user.target. runlevel3.target is a symbolic link to multi-user.target.
运行级别3由multi-user.target模拟。 runlevel3.target是指向multi-user.target的符号链接。
You can switch to ‘runlevel 3’ by running
您可以通过运行切换到“运行级别3”
# systemctl isolate multi-user.target
On boot, systemd activates the target unit default.target whose job is to activate services and other units by pulling them in via dependencies. systemd parses its own kernel command line argument systemd.unit=
.
引导时,systemd激活目标单元default.target,其工作是通过依赖关系将服务和其他单元拉入来激活它们。 systemd解析其自己的内核命令行参数systemd.unit=
。
This may be used to temporarily boot into the multi-user.target boot unit:
这可以用于临时引导到multi-user.target引导单元:
systemd.unit=multi-user.target
On some systems you have to disable the `lightdm.service` or `kde.service` or `gdm.service` whichever might be still active
在某些系统上,您必须禁用“ lightdm.service”,“ kde.service”或“ gdm.service”。
# systemctl disable kde.service
# systemctl disable lightdm.service
# systemctl disable gdm.service
翻译自: https://www.systutorials.com/how-to-configure-systemd-to-boot-linux-to-console-mode-runlevel-3/
linux systemd