Problems related to image connection failure caused by yum update in CentOS
Yumupdate fails to be resolved. Check that the yum source settings are correct. Then, check that the local DNS cannot be resolved and enable the DNS port through the firewall. Then, yum cannot be installed. Check that the configurations of another server and faulty server are the same, but yum is normal. We find that the mirror of load is different, while loadingfastmirror is normal, the faulty server loads another inaccessible mirror and tries to solve the problem after shutting down the loadfasteststmirrorin of the faulty server.
The solution is as follows:
Vi/etc/yum/pluginconf. d/fastestmirror. conf
[Main]
Enabled = 0 // Change 1 to 0
Verbose = 0
Socket_timeout = 3
Hostfilepath =/var/cache/yum/timedhosts.txt
Maxhostfileage = 10
Maxthreads = 15
# Exclude =. gov, facebook
========================================================== ========================================================== ========
Modify the following configuration file
# Vi/etc/yum. conf
[Main]
Cachedir =/var/cache/yum/$ basearch/$ releasever
Keepcache = 0
Debuglevel = 2
Logfile =/var/log/yum. log
Exactarch = 1
Obsoletes = 1
Gpgcheck = 1
Plugins = 1 # change the value of plugins to 0
Installonly_limit = 5