liangzb310

1.在命令行的centos中安装图形化

配置本地源

[root@localhost yum.repos.d]# yum clean all

[root@localhost yum.repos.d]# yum makecache

[root@localhost yum.repos.d]# yum grouplist

clip_image001

安装

[root@localhost yum.repos.d]# yum groupinstall "带 GUI 的服务器" -y

2.切换到桌面版

[root@localhost ~]# startx

clip_image002

要退出图形化的话ctrl+C即可

3.切换到命令行界面

[root@localhost ~]# systemctl get-default #查看当前是什么界面启动

graphical.target # 图形化

multi-user.target # 命令行

[root@localhost ~]# systemctl set-default multi-user.target # 将默认启动修改为命令行界面启动,

重启后,进入的就是命令行界面。

分类:

技术点:

相关文章:

  • 2021-12-03
  • 2021-11-14
  • 2021-12-03
  • 2021-08-15
  • 2021-08-15
  • 2021-11-24
  • 2021-11-24
  • 2021-11-23
猜你喜欢
  • 2021-11-23
  • 2021-12-07
  • 2021-12-03
  • 2021-11-24
  • 2021-12-07
  • 2021-12-07
  • 2021-11-14
相关资源
相似解决方案