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
目录
相关文章
|
11月前
|
Linux 数据安全/隐私保护
Centos安装桌面系统并设置成默认启动
Centos安装桌面系统并设置成默认启动
191 0
|
11月前
|
Linux
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
306 0
|
应用服务中间件 Linux Shell
设置Nginx开机自动启动(centos6.8上亲测可用)
设置Nginx开机自动启动(centos6.8上亲测可用)
|
Linux 开发工具
设置centos默认启动命令行(不启动图形界面)
设置centos默认启动命令行(不启动图形界面)
|
域名解析 弹性计算 Ubuntu
ubuntu 18.04 如何设置开机自动启动脚本
本文主要为大家介绍如何通过systemd来实现ubuntu 18.04系统开机自动运行脚本。
12354 0
ubuntu 18.04 如何设置开机自动启动脚本
|
Shell Linux 开发工具
Linux:开机启动顺序启动顺序及配置开机启动
Linux:开机启动顺序启动顺序及配置开机启动
251 0
|
应用服务中间件 Linux nginx
Ubuntu15.x /CentOS 7.x 以后 设置开机启动,添加自定义系统服务,自定义开机启动
Ubuntu15.04今天 装LANMPS套件,装好后开机启动死活设置不了,查看了Ubuntu15.04的新特性才发现: Systemd——Ubuntu 15.04的服务管理器已经切换到Systemd;   Unity 7.3——Unity桌面版本升级到7.3,包含很多小的优化;   Compiz 0.9.12——窗口管理器升级到0.9.12;  Linux Kernel 3.19
2169 0