修改启动界面
在centos7以前通常修改/etc/inittab 中的
id:5:initdefault:
来改变启动方式,而在centos7 中是没有这一项的,通过查看
more /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 /etc/systemd/system/ctrl-alt-del.target
#
# systemd uses ‘targets‘ instead of runlevels. By default, there are two main ta
rgets:
#
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
#
# To set a default target, run:
#
# ln -sf /lib/systemd/system/<target name>.target /etc/systemd/system/default.ta
rget
文件已经说明要改变方式需要进行的操作
只需要将<target name> 修改为对应的即可。
时间: 2024-12-13 09:51:21