Debian8修改启动默认运行级别

简介: 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
目录
相关文章
|
Linux 数据安全/隐私保护
Centos安装桌面系统并设置成默认启动
Centos安装桌面系统并设置成默认启动
238 0
|
Linux
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
392 0
|
Linux 开发工具
设置centos默认启动命令行(不启动图形界面)
设置centos默认启动命令行(不启动图形界面)
|
域名解析 弹性计算 Ubuntu
ubuntu 18.04 如何设置开机自动启动脚本
本文主要为大家介绍如何通过systemd来实现ubuntu 18.04系统开机自动运行脚本。
12416 0
ubuntu 18.04 如何设置开机自动启动脚本
|
Ubuntu
ubuntu双系统把win7设置为默认启动选项
最近给朋友的电脑中安装了ubuntu系统,与之前的win7系统共存,每次开机默认启动的是ubuntu系统,现在想把默认启动选项设置为win7系统,我们一起看看怎么设置。 工具/原料 ubuntu16.04操作系统。
2686 0