环境--centos7.8
yum update 无法更新
处理过程:
1.先检查网络,没有问题;
2.reboot重启电脑,service network restart重启网卡,仍无法更新
3.搜索参考得到解决方法:
需要修改yum源和镜像的配置文件
# vi /etc/yum/pluginconf.d/fastestmirror.conf
[main]
enabled=0 //把1改为0
verbose=0
socket_timeout=3
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=10
maxthreads=15
#exclude=.gov, facebook
======================================================================================&