CentOS7更改运行级别

Step 1:查看系统默认运行级别

[root@node-1 html]# systemctl get-default       //图形界面
graphical.target

[root@node-1 html]# systemctl list-units --type=target    //查看支持的运行级别

Step 2:更改运行级别为level3 

[root@node-1 html]# systemctl set-default multi-user.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
[root@node-1 html]#

Step 3:reboot

原文地址:https://www.cnblogs.com/networking/p/10346459.html