1、起因:
使用redhat自带镜像yum源安装软件时,报错:unable to read consumer identity。这个提示告诉我们,yum没有读取到你的用户id。如果你想使用redhat同步不想花费几千元注册系统,就可以使用centos的yum源来代替。
2、centos-8 yum网络源配置
2.1、访问阿里云镜像站,下载repo镜像下载页
地址:https://mirrors.aliyun.com/repo/
下载:Centos-8.repo
打开所下载的centos-8.repo,上传至/etc/yum.repos.d/目录下
[root@server130 yum.repos.d]# cat Centos-8.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#