CentOS7修改默认运行级别
来源:互联网 发布:手机调色软件 编辑:程序博客网 时间:2024/06/05 20:35
新装了一个虚拟机,图形界面启动太慢,想调整一下按照以前的经验改运行级别,输入:
vi /etc/inittab
然后发现跟之前不一样了,在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#
仔细读一下上面的提示
multi-user.target 类似与之前的runlevel 3
graphical.target 类似与之前的runlevel 5
按照上面的提示,查看当前的默认target输入命令:
[root@localhost ~]# systemctl get-defaultgraphical.target[root@localhost ~]#
当前为graphical.target
修改为命令模式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 ~]#
查看一下当前,发现得到预期要求:
[root@localhost ~]# systemctl get-defaultmulti-user.target[root@localhost ~]#
最后重启发现,果然是命令模式~~
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)的标准方法
- MongoDB常见问题及解决办法
- OpenVPN GUI出现CreateProcess错误的解决方法
- 不懂中断你就别玩单片机
- [李景山php]每天TP5-20170116|thinkphp5-Url.php-1
- Java中事务的处理
- CentOS7修改默认运行级别
- thinkphp 模板解析的流程
- sonar编码规范之Use "Integer.parseInt" for this string-to-int conversion
- Parse error in application web.xml file at jndi:/localhost/ipws/WEB-INF/web.xml
- Leetcode 384. Shuffle an Array (Medium) (cpp)
- centos E440 安装无线网卡
- c++::进入继承的世界
- 【Java每日一题】20161214
- 第二次世界大战死伤人数