{"id":896,"date":"2021-03-04T15:36:09","date_gmt":"2021-03-04T07:36:09","guid":{"rendered":"https:\/\/blog.humh.cn\/?p=896"},"modified":"2021-03-05T11:23:34","modified_gmt":"2021-03-05T03:23:34","slug":"centos-6%e4%bd%bf%e7%94%a8yum%e5%8f%af%e8%83%bd%e5%ad%98%e5%9c%a8%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/blog.humh.cn\/?p=896","title":{"rendered":"CentOS 6\u4f7f\u7528Yum\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u4f18\u5316"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>\u672c\u6587\u4e3b\u8981\u603b\u7ed3\u4e0b\uff0c\u6211\u5728CentOS 6\u7248\u672c\u4e2d\u4f7f\u7528yum\u65f6\uff0c\u9047\u5230\u7684\u4e00\u4e9b\u955c\u50cf\u6e90\u4f7f\u7528\u7684\u95ee\u9898<\/p><\/blockquote>\n\n\n\n<p>\u5728CentOS 6\u7248\u672c\u4e2d\u4f7f\u7528yum\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u955c\u50cf\u6e90\u4f7f\u7528\u7684\u76f8\u5173\u95ee\u9898\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u989d\u5916\u7684\u914d\u7f6e\u4fee\u6539\u3002\u4e0b\u9762\u5206\u4e3a\u4e09\u5927\u5757\u8fdb\u884c\u9610\u8ff0\uff1a<\/p>\n\n\n\n<ul><li>\u914d\u7f6e\u53ef\u7528\u955c\u50cf\u6e90<\/li><li>\u7981\u6b62\u4f7f\u7528yum-fastestmirror\u63d2\u4ef6<\/li><li>\u89e3\u51b3\u201c\u955c\u50cf\u6e90\u8bbf\u95ee30s\u8d85\u65f6\uff0c\u94fe\u63a5\u65ad\u5f00\u201d\u95ee\u9898<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<h4>\u4e00\u3001\u914d\u7f6e\u53ef\u7528\u955c\u50cf\u6e90<\/h4>\n\n\n\n<p>\u56e0\u4e3ayum\u5bf9CentOS\u7248\u672c\u652f\u6301\u6709\u53d8\u5316\uff0c\u8fd9\u91cc\u9700\u8981\u5bf9yum\u9ed8\u8ba4\u7684\u955c\u50cf\u6e90\u8fdb\u884c\u66ff\u6362\uff0c\u8be6\u7ec6\u539f\u56e0\u548c\u5177\u4f53\u505a\u6cd5\u53ef\u89c1\uff1a<a href=\"https:\/\/blog.humh.cn\/?p=861\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u89e3\u51b3\u4f4e\u7248\u672cCentOS\u4e2d\u4f7f\u7528yum\u5f02\u5e38\u95ee\u9898\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u89e3\u51b3\u4f4e\u7248\u672cCentOS\u4e2d\u4f7f\u7528yum\u5f02\u5e38\u95ee\u9898<\/a><\/p>\n\n\n\n<h4>\u4e8c\u3001\u7981\u6b62\u4f7f\u7528yum-fastestmirror\u63d2\u4ef6<\/h4>\n\n\n\n<p>\u5982\u679c\u955c\u50cf\u6e90\u4e0d\u53ef\u7528\u6216\u901f\u5ea6\u8fc7\u6162\u65f6\uff0c\u4f1a\u5bfc\u81f4<strong>yum-fastestmirror<\/strong>\u4e00\u76f4\u963b\u585e\u5728\u5bfb\u627e\u6700\u5feb\u955c\u50cf\u6e90\u7684\u6b65\u9aa4\uff0c\u8f93\u51fa\u53ef\u89c1\u4e00\u76f4\u963b\u585e<code>Loaded&nbsp;plugins:&nbsp;fastestmirror<\/code>\u8fd9\u4e00\u6b65\u3002\u3002\u6240\u4ee5\u4e3a\u4e86\u907f\u514d\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ef\u4ee5\u7981\u6b62<strong>yum-fastestmirror<\/strong>\u63d2\u4ef6\u3002\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<code>\/etc\/yum\/pluginconf.d\/fastestmirror.conf<\/code>\uff0c\u5c06<code>enabled=1<\/code>\u6539\u4e3a<code>enabled=0<\/code>\u5373\u53ef\u3002<\/p>\n\n\n\n<h4>\u4e09\u3001\u89e3\u51b3\u201c\u955c\u50cf\u6e90\u8bbf\u95ee30s\u8d85\u65f6\uff0c\u94fe\u63a5\u65ad\u5f00\u201d\u95ee\u9898<\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-13.png\"><img width=\"692\" height=\"71\" class=\"wp-image-897 lazyload\" title=\"CentOS 6\u4f7f\u7528Yum\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u4f18\u5316\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-13.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-13.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-13.png 692w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-13-300x31.png 300w\" sizes=\"(max-width: 692px) 100vw, 692px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u5728\u914d\u7f6e\u591a\u955c\u50cf\u6e90\u7684\u60c5\u51b5\u4e0b\uff0c\u5047\u8bbe\u524d\u4e24\u4e2a\u955c\u50cf\u6e90\u4e0d\u53ef\u7528\uff08\u8fd9\u91cc\u6545\u610f\u5c06\u5730\u5740\u5199\u9519\uff0c\u4fbf\u4e8e\u6d4b\u8bd5\uff09\uff0c\u90a3\u4e48yum\u4f1a\u4f7f\u7528\u7b2c\u4e09\u4e2a\u955c\u50cf\u6e90\uff08\u4e5f\u5c31\u662fvault.centos.org\uff09\uff0c\u4f46\u5b9e\u9645\u8fd9\u4e2a\u955c\u50cf\u6e90\u5f88\u6162\uff0c\u5728\u6ca1\u6709\u989d\u5916\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\uff0cyum\u672c\u8eab\u5bf9\u4e8e\u6e90\u7684\u8bbf\u95ee\u8d85\u65f6\u63a7\u5236\u572830s\u5185\uff0c\u90a3\u4e48\u6b64\u65f6\u5c31\u5f88\u5bb9\u6613\u51fa\u73b0\u8d85\u65f6\u5f02\u5e38\uff0c\u5bfc\u81f4\u955c\u50cf\u6e90\u4e0d\u53ef\u7528\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15.png\"><img width=\"949\" height=\"337\" class=\"wp-image-900 lazyload\" title=\"CentOS 6\u4f7f\u7528Yum\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u4f18\u5316\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15.png 949w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15-300x107.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-15-768x273.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\"><\/a><\/figure><\/div>\n\n\n\n<p><code>Operation too slow. Less than 1 bytes\/sec transfered the last 30 seconds<\/code><\/p>\n\n\n\n<p>\u6240\u4ee5\u8fd9\u91cc\u5bf9yum\u8fdb\u884c\u914d\u7f6e\uff0c\u5728<strong>yum.conf<\/strong>\u4e2d\uff0c\u589e\u52a0\u5982\u4e0b\u4e24\u884c\u53c2\u6570<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-14.png\"><img width=\"480\" height=\"304\" class=\"wp-image-898 lazyload\" title=\"CentOS 6\u4f7f\u7528Yum\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u4f18\u5316\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-14.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-14.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-14.png 480w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-14-300x190.png 300w\" sizes=\"(max-width: 480px) 100vw, 480px\"><\/a><\/figure><\/div>\n\n\n\n<p><code>timeout=600<\/code>\uff1a\u6307\u5b9a\u8d85\u65f6\u65f6\u95f4600s\uff0c\u537310\u5206\u949f\u3002\u9ed8\u8ba430\uff0c\u5355\u4f4ds<br><code>minrate=1<\/code>\uff1a\u6307\u5b9a\u5982\u679c\u8d85\u65f6\u65f6\u95f4\u5185\u6ca1\u6709\u6536\u591f1Byte\u7684\u6570\u636e\uff0c\u5c31\u65ad\u5f00\u8fde\u63a5\u3002\u5355\u4f4d\u5b57\u8282<\/p>\n\n\n\n<p>\u4e24\u4e2a\u53c2\u6570\u662f\u9700\u8981\u7ed3\u5408\u4f7f\u7528\u7684\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u589e\u52a0\u8fd9\u4e24\u4e2a\u914d\u7f6e\u540e\uff0c\u53ef\u4ee5\u907f\u514dyum\u56e030s\u8d85\u65f6\u5f02\u5e38\u800c\u963b\u585e\u4efb\u52a1\uff0c\u81f3\u5c11\u4e5f\u4f1a\u575a\u630110\u5206\u949f\uff0c\u5f53\u7136\u5b9e\u9645\u5e76\u4e0d\u4f1a\u6162\u523010\u5206\u949f\u8fd9\u4e48\u4e45\uff0c\u53ea\u4e0d\u8fc730s\u4ee5\u4e0a\uff0c\u6240\u4ee5\u914d\u7f6e\u5b8c\u540e\uff0cyum\u6b63\u5e38\u4ece\u6e90\u4e2d\u4e0b\u8f7d\u3002\u53c2\u6570\u503c\u5927\u5c0f\uff0c\u89c6\u5177\u4f53\u60c5\u51b5\u8003\u8651\u3002\u5982\u679c\u53c2\u6570\u503c\u8fd8\u662f\u4e0d\u6ee1\u8db3\u6761\u4ef6\u7684\u8bdd\uff0c\u5f88\u6709\u53ef\u80fd\u8fd8\u662f\u4f1a\u5f02\u5e38\uff0c\u5982\u4e0b<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16.png\"><img width=\"950\" height=\"62\" class=\"wp-image-901 lazyload\" title=\"CentOS 6\u4f7f\u7528Yum\u53ef\u80fd\u5b58\u5728\u7684\u95ee\u9898\u4ee5\u53ca\u5bf9\u5e94\u4f18\u5316\" src=\"data:image\/gif;base64,R0lGODlhAgABAIAAALGxsQAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==\" data-src=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16.png\" alt=\"https:\/\/file.blog.humh.cn\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16.png\" data-srcset=\"https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16.png 950w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16-300x20.png 300w, https:\/\/file.blog.humh.cn\/wp-content\/uploads\/2021\/03\/d2b5ca33bd970f64a6301fa75ae2eb22-16-768x50.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\"><\/a><\/figure><\/div>\n\n\n\n<p>\u6240\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u53ef\u8c03\u6574\uff0c\u6216\u8005\u53ca\u65f6\u66f4\u6362\u955c\u50cf\u6e90\uff01\uff01<\/p>\n\n\n\n<hr class=\"wp-block-separator\" \/>\n\n\n\n<p><strong>\u672c\u6587\u53c2\u8003<\/strong><\/p>\n\n\n\n<ul><li>yum.conf(5) \u2014 Linux manual page\uff1a<a href=\"https:\/\/man7.org\/linux\/man-pages\/man5\/yum.conf.5.html\">https:\/\/man7.org\/linux\/man-pages\/man5\/yum.conf.5.html<\/a><\/li><li>yum \u65f6\u4e00\u76f4\u505c\u5728Determining fastest mirrors \u754c\u9762\uff1a<a href=\"https:\/\/www.cnblogs.com\/zhangzhiqin\/p\/9973636.html\">https:\/\/www.cnblogs.com\/zhangzhiqin\/p\/9973636.html<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e3b\u8981\u603b\u7ed3\u4e0b\uff0c\u6211\u5728CentOS 6\u7248\u672c\u4e2d\u4f7f\u7528yum\u65f6\uff0c\u9047\u5230\u7684\u4e00\u4e9b\u955c\u50cf\u6e90\u4f7f\u7528\u7684\u95ee\u9898 \u5728CentOS 6\u7248\u672c\u4e2d\u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[53],"tags":[30,112],"_links":{"self":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/896"}],"collection":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=896"}],"version-history":[{"count":4,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions"}],"predecessor-version":[{"id":907,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/posts\/896\/revisions\/907"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=\/wp\/v2\/media\/868"}],"wp:attachment":[{"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.humh.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}