CentOS7的运行级别
来源:互联网 发布:mac改变用户名 编辑:程序博客网 时间:2024/06/06 18:24
一 查看当前运行的级别
[root@localhost ~]# runlevel
N 5
二 运行级别概念
第三运行级:
multi-user.target
第五运行级:
graphical.target
前者是符号链接指向了后面的target
runlevel3.target -> multi-user.target
runlevel5.target -> graphical.target
三 运行级别的切换
切换到:运行级3
下面这方法可以
systemctl isolate multi-user.target
举例
[root@localhost ~]# systemctl isolate multi-user.target
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
[root@localhost ~]# runlevel
5 3
切换到:运行级5
下面方法可以
systemctl isolate graphical.target
[root@localhost ~]# systemctl isolate graphical.target
PolicyKit daemon disconnected from the bus.
We are no longer a registered authentication agent.
PolicyKit daemon reconnected to bus.
Attempting to re-register as an authentication agent.
We are now a registered authentication agent.
[root@localhost ~]# runlevel
3 5
四 修改开机默认运行级别
切换到运行级3
systemctl set-default multi-user.target
[root@localhost ~]# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
切换到运行级5
systemctl set-default graphical.target
[root@localhost ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.
阅读全文
0 0
- CentOS7的运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- centos7设置系统运行级别
- CentOS7下运行级别切换
- Centos7调整开机运行级别
- CentOS7修改默认运行级别
- CentOS7修改默认运行级别
- centos7 设置当前运行级别和默认运行级别
- CentOS7默认运行级别和终端分辨率
- CentOS7.1修改开机默认运行级别
- 修改CentOS7系统默认运行级别
- 系统的运行级别
- Solaris的运行级别
- linux 的运行级别
- Linux的运行级别
- 排序二叉树的建立、插入、删除、查找
- 答辩题目:按钮布局
- 图灵机器人接口实现自动回复(web版)
- Codeforces Gym-101617G
- Lintcode 3. 统计数字
- CentOS7的运行级别
- 主席树区间第k大;非严格第k大
- Go-一些简单的类型转换及处理
- 树莓派WEB服务器
- linux常用基本命令
- 企业级开发各种的软件从业人员:
- 协调多个对象之间的交互——中介者模式(四)
- tt
- vue之vue实例简单方法