现在可以像一台普通服务器一样进行使用了
后面的篇章中再对虚拟机的管理进行详细演示
[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 来进行管理
[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 ~]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。