详情页

CentOS7 安装图形化桌面详解

时间:2023年05月11日

编辑:佚名

‍‍创建本地yum仓库‍‍
 #yum clean all                            \\  清楚yum仓库缓存 
 #yum makecache                             \\ 创建yum仓库缓存
 #yum repolist                              \\ 列出可用yum仓库
 #yum grouplist                              \\ 列出程序组

复制
#yum -y groupinstall "Server with GUI"      \\ 安装图形化程序组
复制
‍‍
设置默认运行级别为图形化‍‍
[root@localhost Desktop]# systemctl get-default          \\查看默认运行级别
multi-user.target
[root@localhost Desktop]# systemctl set-default graphical.target \\设置默认图形化运行级别
rm '/etc/systemd/system/default.target'
ln -s '/usr/lib/systemd/system/graphical.target''/etc/systemd/system/default.target'
[root@localhost Desktop]# systemctl get-default                    \\查看默认运行级别graphical.target                                                    \\图形化设置OK
相关文章
猜你需要