centos7如何关闭图形界面

要关闭CentOS 7的图形界面,可以按照以下步骤操作:

登录到CentOS 7系统。
打开终端。
执行以下命令以切换到root用户:

sudo su -

执行以下命令以查看当前运行的图形服务:

systemctl list-unit-files | grep graphical.target

执行以下命令以禁用图形服务:

systemctl set-default multi-user.target

执行以下命令以停止当前正在运行的图形服务:

systemctl isolate multi-user.target

重启系统以应用更改:

reboot

完成上述步骤后,系统将以纯文本模式启动,不再使用图形界面。如果需要再次启用图形界面,可以执行以下命令:

systemctl set-default graphical.target
systemctl isolate graphical.target
阅读剩余
THE END