KVM基础7

2022-01-19 10:52:01 浏览数 (1)

现在可以像一台普通服务器一样进行使用了

后面的篇章中再对虚拟机的管理进行详细演示


修改运行级别

查看当前运行级别

代码语言:javascript复制
[root@docker ~]# cat /etc/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
#
[root@docker ~]# systemctl get-default
graphical.target
[root@docker ~]# runlevel 
N 5
[root@docker ~]#

Tip: Centos7 中不再是使用 /etc/inittab 来配置运行级别,而是使用 systemd 来进行管理

代码语言:javascript复制
[root@docker ~]# ll /lib/systemd/system/runlevel3.target
lrwxrwxrwx. 1 root root 17 Feb 23 10:08 /lib/systemd/system/runlevel3.target -> multi-user.target
[root@docker ~]# ll /lib/systemd/system/runlevel5.target
lrwxrwxrwx. 1 root root 16 Feb 23 10:08 /lib/systemd/system/runlevel5.target -> graphical.target
[root@docker ~]# 

0 人点赞