Q:Loading mirror speeds from cached hostfile

A:yum修改

https://www.jianshu.com/p/0f919eed728a

先看看网络有没有通(如果没通先解决网络问题)

ping www.baidu.com
sudo yum install wget

修改yum源

cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
mv CentOS7-Base-163.repo CentOS-Base.repo
yum clean all

mv CentOS-Base.repo.backup CentOS-Base.repo

Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

文档更新时间: 2023-08-03 08:07   作者:admin