Debian8修改启动默认运行级别

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debian8修改启动默认运行级别相关的知识,希望对你有一定的参考价值。

Two things you need to know:

1) Systemd boots towards the target given by "default.target". This is typically a symbolic link to the actual target file.

2) Systemd keeps it‘s targets in /lib/systemd/system and /etc/systemd/system. A file in /etc/systemd/system takes precedence over those shipped with the OS in /lib/systemd/system -- the intent is that /etc/systemd is used by systems administrators and /lib/systemd is used by distributions.

Debian as-shipped boots towards the graphical target. You can see this yourself:

$ ls -l /etc/systemd/system/default.target
... No such file or directory
$ ls -l /lib/systemd/system/default.target
... /lib/systemd/system/default.target -> graphical.target

So to boot towards the multiuser target all you need do is to put in own target:

$ cd /etc/systemd/system/
$ sudo ln -s /lib/systemd/system/multi-user.target default.target

以上是关于Debian8修改启动默认运行级别的主要内容,如果未能解决你的问题,请参考以下文章

运行级别与root密码修改

Debian8.3如何设置默认不启动Gnome

linux 中修改日志级别怎么修改

CentOS7修改默认启动级别

Linux启动管理与备份

CentOS7修改默认启动级别