一、操作系统安装检查
按照默认(standard)方式安装CentOS 8.4,并更换本地源。
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.4.2105
[root@localhost ~]# cat /etc/yum.repos.d/CentOS-Linux-8.4.repo
[appstream]
name=CentOS Linux - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=$basearch&repo=AppStream&infra=$infra
#baseurl=http://mirror.centos.org/8.4.2105//AppStream/$basearch/os/
baseurl=http://172.16.71.242/el8/8.4.2105/AppStream/$basearch/os/
https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105/AppStream/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[baseos]
name=CentOS Linux - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=$basearch&repo=BaseOS&infra=$infra
#baseurl=http://mirror.centos.org/8.4.2105//BaseOS/$basearch/os/
baseurl=http://172.16.71.242/el8/8.4.2105/BaseOS/$basearch/os/
https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105/BaseOS/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[devel]
name=CentOS Linux - Devel WARNING! FOR BUILDROOT USE ONLY!
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=$basearch&repo=Devel&infra=$infra
#baseurl=http://mirror.centos.org/8.4.2105//Devel/$basearch/os/
baseurl=http://172.16.71.242/el8/8.4.2105/Devel/$basearch/os/
https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105/Devel/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial[plus]
name=CentOS Linux - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/8.4.2105//centosplus/$basearch/os/
baseurl=http://172.16.71.242/el8/8.4.2105/centosplus/$basearch/os/
https://mirrors.tuna.tsinghua.edu.cn/centos-vault/8.4.2105/centosplus/$basearch/os/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
二、安装图形界面及管理工具
yum group install "Server with GUI" --skip-broken
yum group install "Graphical Administration Tools"
三、将默认启动更改为图形运行级别
systemctl set-default graphical.target
systemctl isolate graphical.target