Centos7系统运行级别的更改

    当前系统的版本如下图所示:

Centos7系统运行级别的更改


   查看启动文件:

Centos7系统运行级别的更改

centos7系统的启动文件看起来挺陌生的,上面说明了centos7系统有2个运行级别,分别是3和5,还指明了如何查看当前运行的级别以及如何设置运行级别的方法

# multi-user.target--------------- runlevel 3
# graphical.target --------------- runlevel 5

systemctl get-default    查看当前的模式 

systemctl set-default   XXX.target   修改启动的模式

查看当前运行级别:

Centos7系统运行级别的更改


修改运行级别:

Centos7系统运行级别的更改