码迷,mamicode.com
首页 > 其他好文 > 详细

Debian8修改启动默认运行级别

时间:2016-01-29 11:48:07      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

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修改启动默认运行级别

标签:

原文地址:http://www.cnblogs.com/davad/p/5168131.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!