CentOS8字符界面转图形化

curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
yum makecache
yum groupinstall "Server with GUI" -y
systemctl set-default graphical.target # 图形化
systemctl set-default multi-user.target # 字符界面

posted @ 2021-04-24 23:37  Linux大魔王  阅读(198)  评论(0编辑  收藏  举报