CentOS7修改默认运行级别
来源:互联网 发布:什么是圆方软件 编辑:程序博客网 时间:2024/06/06 16:34
图形界面启动太慢,想调整一下按照以前的经验改运行级别,输入:
vi /etc/inittab
1进入inittab:
# inittab is no longer used when using systemd.## ADDING CONFIGURATION HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.## Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target## systemd uses 'targets' instead of runlevels. By default, there are two main targets:## multi-user.target: analogous to runlevel 3# graphical.target: analogous to runlevel 5## To view current default target, run:# systemctl get-default## To set a default target, run:# systemctl set-default TARGET.target#
2仔细读一下上面的提示
multi-user.target 类似与之前的runlevel 3
graphical.target 类似与之前的runlevel 5
3按照上面的提示,查看当前的默认target输入命令:
[root@localhost ~]# systemctl get-defaultgraphical.target[root@localhost ~]#
4当前为graphical.target
5修改为命令模式multi-user.target:
[root@localhost ~]# systemctl set-default multi-user.targetrm '/etc/systemd/system/default.target'ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'[root@localhost ~]#
6查看一下当前
[root@localhost ~]# systemctl get-defaultmulti-user.target[root@localhost ~]#
7重启后发现,是命令行模式 呵呵呵!!!
阅读全文
0 0
- CentOS7修改默认运行级别
- CentOS7修改默认运行级别
- CentOS7.1修改开机默认运行级别
- 修改CentOS7系统默认运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- Centos7 修改运行级别
- Linux-CentOS7学习1_修改系统默认运行级别
- CentOS修改默认运行级别
- CentOS修改默认运行级别
- centos7 设置当前运行级别和默认运行级别
- CentOS7默认运行级别和终端分辨率
- 修改linux的默认运行级别
- REHL 7修改默认运行级别
- Centos7修改默认启动级别(命令行,图形切换)
- CentOS7的运行级别
- 修改Fedora15默认运行级别(initlevel)的标准方法
- 润乾V5自动计算乱码的解决
- SSH框架---Struts2
- java按行分割文件
- dubbo和zookeeper的实现原理
- .net总结(一)
- CentOS7修改默认运行级别
- 在docker中启动mysql容器
- 分布式缓存Redis之主从复制与Sentinel哨兵
- SpringCloud Eureka项目启动子项目报错Connection refused: connect Cannot execute request on any known server
- 理解JS捕获、目标、冒泡三个阶段
- 设计模式:观察者模式
- 调整数组使奇数位于偶数前面
- MailSploit:30多种邮件客户端存在电邮身份伪造漏洞
- 简单性