linux 运行级别 您所在的位置:网站首页 linux系统运行级别有哪些 linux 运行级别

linux 运行级别

2024-06-06 14:44| 来源: 网络整理| 查看: 265

1、系统运行级别哪些?如何设置系统的启动运行级别?

运行级别 0:关机模式。poweroff.target 运行级别 1:(安全模式)单用户模式,仅用于 root 用户对系统进行维护时。rescue.target 运行级别 2:多用户模式(没有 NFS,网络)。multi-user.target 运行级别 3:完全多用户模式,即多用户文本界面模式,是标准的运行级别。multi-user.target 运行级别 4:特定运行级别,基本不用的用户模式。multi-user.target 运行级别 5:X11,Linux 系统的图形界面运行级别。graphical.target 运行级别 6:重新启动。reboot.target

设置系统的启动: 方法一:重新设置链接文件 (软链接)

rm -rf /etc/systemd/system/default.target ln -s /lib/systemd/system/runlevel3.target /etc/systemd/system/default.tart

方法二:使用 systemctl 命令

systemctl set-default运行级别target文件

实践:

1、用户 lily 经常在 Linux 字符界面下进行工作,因此 lily 把 Linux 系统设置开机后直接进入完全多用户字符界面。 第一步:使用 systemctl 命令 在这里插入图片描述 第二步:重启:systemctl reboot,就是以字符界面显示了。



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有