{"id":614,"date":"2021-01-11T22:37:20","date_gmt":"2021-01-11T14:37:20","guid":{"rendered":"http:\/\/bj.iur.me\/?p=614"},"modified":"2022-11-06T20:13:46","modified_gmt":"2022-11-06T12:13:46","slug":"centos6%e7%9a%84%e6%94%af%e6%8c%81%e7%bb%99%e5%ae%98%e6%96%b9%e5%81%9c%e6%8e%89%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.iur.me\/?p=614","title":{"rendered":"centos6\u7684\u652f\u6301\u7ed9\u5b98\u65b9\u505c\u6389\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"\n<p>\u62a5All mirror URLs are not using ftp, http[s] or file.\u662f\u56e0\u4e3acentos6\u7684\u652f\u6301\u7ed9\u5b98\u65b9\u505c\u6389\u4e86&#8230;&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[root@Hadoop ~]# yum makecache\n\nLoaded plugins: fastestmirror\n\nLoading mirror speeds from cached hostfile\n\nYumRepo Error: All mirror URLs are not using ftp, http[s] or file.\n\nEg. Invalid release\/repo\/arch combination\/\n\nremoving mirrorlist with no valid mirrors: \/var\/cache\/yum\/x86_64\/6\/base\/mirrorlist.txt\n\nError: Cannot find a valid baseurl for repo: base\n<\/code><\/pre>\n\n\n\n<p>\u6709\u7684\u65f6\u5019\u4e5f\u4f1a\u62a5:<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/mirrors.linode.com\/centos\/6\/os\/x86_64\/repodata\/repomd.xml: [Errno 14]\n\nPYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"\n\nTrying other mirror.\n\nTo address this issue please refer to the below knowledge base article\n\nhttps:\/\/access.redhat.com\/articles\/1320623\n<\/code><\/pre>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5,\u6267\u884c\u5982\u4e0b\u547d\u4ee4:<em><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sed -i \"s|enabled=1|enabled=0|g\" \/etc\/yum\/pluginconf.d\/fastestmirror.conf\n\nmv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup\n\ncurl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/www.xmpan.com\/Centos-6-Vault-Aliyun.repo\n\nyum clean all\n\nyum makecache<\/code><\/pre>\n\n\n\n<p>\u6765\u6e90\uff1a<\/p>\n\n\n\n<p>\u4f5c\u8005\uff1a\u733f\u62e9<br>\u94fe\u63a5\uff1ahttps:\/\/www.jianshu.com\/p\/70e9dcf61ef9<br>\u6765\u6e90\uff1a\u7b80\u4e66<br>\u8457\u4f5c\u6743\u5f52\u4f5c\u8005\u6240\u6709\u3002\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\u83b7\u5f97\u6388\u6743\uff0c\u975e\u5546\u4e1a\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u62a5All mirror URLs are not using ftp, http[s] or file.\u662f\u56e0\u4e3a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-it"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=614"}],"version-history":[{"count":1,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/614\/revisions"}],"predecessor-version":[{"id":649,"href":"https:\/\/www.iur.me\/index.php?rest_route=\/wp\/v2\/posts\/614\/revisions\/649"}],"wp:attachment":[{"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iur.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}