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 # 字符界面