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
Linux系统LVM信息丢失处理方法
Linux的LVM会存储用户对PV/VG/LV的每一步操作,并自动把当前的VG的信息备份到一个文件里面,该文件为/etc/lvm/backup/VG名,本文描述了当信息丢失时如何找回的处理方法。
10447 60
Linux系统LVM信息丢失处理方法
|
Android开发
Android Studio入门之图像显示解析及实战(附源码 超详细必看)(包括图像视图、图像按钮、同时展示文本与图像)
Android Studio入门之图像显示解析及实战(附源码 超详细必看)(包括图像视图、图像按钮、同时展示文本与图像)
489 1
|
存储 缓存 网络协议
深入理解Linux网络——TCP连接的开销
在应用程序里,我们使用多少内存都是自己能掌握和控制的,但是纵观Linux整台服务器,除了应用程序以外,内核也会申请和管理大量的内存。 一、相关实际问题 内核是如何管理内存的
|
JavaScript Java 测试技术
基于微信小程序的在线点餐+springboot+vue.js附带文章和源代码设计说明文档ppt
基于微信小程序的在线点餐+springboot+vue.js附带文章和源代码设计说明文档ppt
163 0
|
机器学习/深度学习 PyTorch 算法框架/工具
PyTorch搭建卷积神经网络(CNN)进行视频行为识别(附源码和数据集)
PyTorch搭建卷积神经网络(CNN)进行视频行为识别(附源码和数据集)
351 0
|
Ubuntu Python
No module named ‘_lzma’
No module named ‘_lzma’
4177 0
|
Linux Windows
胆战心惊-Kernel Panic -- not syncing: attempted to kill init
关闭了Redhat,重新启动,就遇到Kernel Panic -- not syncing: attempted to kill init,并有这样的提示:CPU has been disabled by guest os. Power off or resset。
2327 0
|
消息中间件 缓存
使用RabbitMq清除本地多节点缓存
使用RabbitMq清除本地多节点缓存
|
调度 Perl
挂载数据盘当kubelet目录后,kubelet无法执行CSI的UmountDevice操作
当挂载数据盘,并通过shared bind mount 分别挂载到kubelet和containerd目录后,kubelet无法执行CSI的UmountDevice操作