Problems related to image connection failure caused by yum update in CentOS

Source: Internet
Author: User

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:

  1. Vi/etc/yum/pluginconf. d/fastestmirror. conf

  2. [Main]

  3. Enabled = 0 // Change 1 to 0

  4. Verbose = 0

  5. Socket_timeout = 3

  6. Hostfilepath =/var/cache/yum/timedhosts.txt

  7. Maxhostfileage = 10

  8. Maxthreads = 15

  9. # Exclude =. gov, facebook

  10. ========================================================== ========================================================== ========

  11. Modify the following configuration file

  12. # 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.