查看当前开机显示的页面
# 查看当前的默认开机的页面,命令行的模式
[root@kvm ~]# systemctl get-default
multi-user.target
安装对应的包
# 查看当前的包组[root@kvm ~]# yum groups list
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
Available Environment Groups:Minimal InstallCompute NodeInfrastructure ServerFile and Print ServerBasic Web ServerVirtualization HostServer with GUIGNOME DesktopKDE Plasma WorkspacesDevelopment and Creative Workstation
Available Groups:Compatibility LibrariesConsole Internet ToolsDevelopment ToolsGraphical Administration ToolsLegacy UNIX CompatibilityScientific SupportSecurity ToolsSmart Card SupportSystem Administration ToolsSystem Management
Done# 我们需要安装 mark convert(转换组文件)和 Server with GUI(图形化服务器桌面)[root@kvm ~]# yum groups mark convert
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
Converted old style groups to objects. # 转换成功了# 安装图形化包,非常的多,1000多个包
yum groupinstall -y "Server with GUI"
设置开机进行的图形化页面
[root@kvm ~]# systemctl set-default graphical.target
Removed symlink /etc/systemd/system/default.target.
Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.reboot
