linux systemd_如何配置systemd以将Linux引导到控制台模式(运行级别3)?

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值