{"id":25,"date":"2017-06-15T15:08:00","date_gmt":"2017-06-15T07:08:00","guid":{"rendered":"http:\/\/blog.yunvisit.com\/?p=25"},"modified":"2018-04-07T14:31:54","modified_gmt":"2018-04-07T06:31:54","slug":"centos-%e6%9b%b4%e6%8d%a2%e5%9b%bd%e5%86%85%e6%ba%90%e9%98%bf%e9%87%8c163","status":"publish","type":"post","link":"https:\/\/blog.yunvisit.com\/?p=25","title":{"rendered":"Centos \u66f4\u6362\u56fd\u5185\u6e90(\u817e\u8baf\/\u963f\u91cc\/\u7f51\u6613)"},"content":{"rendered":"<h3>\u817e\u8baf<\/h3>\n<p>\u7b2c\u4e00\u6b65\uff1a\u5907\u4efd\u4f60\u7684\u539f\u955c\u50cf\u6587\u4ef6\uff0c\u4ee5\u514d\u51fa\u9519\u540e\u53ef\u4ee5\u6062\u590d\u3002<br \/>\nmv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup<br \/>\n\u7b2c\u4e8c\u6b65\uff1a\u4e0b\u8f7d\u65b0\u7684CentOS-Base.repo \u5230\/etc\/yum.repos.d\/<\/p>\n<div class=\"my-syntax-highlighter\">\n<pre><textarea id=\"mshighlighter\" class=\"mshighlighter\" language=\"shell\" name=\"mshighlighter\" >\r\nCentOS 5\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.cloud.tencent.com\/repo\/centos5_base.repo\r\n\r\nCentOS 6\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.cloud.tencent.com\/repo\/centos6_base.repo\r\n\r\nCentos 7\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.cloud.tencent.com\/repo\/centos7_base.repo<\/textarea><\/pre>\n<\/div>\n<p>\u66f4\u6539CentOS-Media.repo\u4f7f\u5176\u4e3a\u4e0d\u751f\u6548\uff1a<br \/>\nenabled=0<br \/>\n\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884cyum makecache\u751f\u6210\u7f13\u5b58<br \/>\nyum clean all<br \/>\nyum makecache<\/p>\n<h3>\u963f\u91cc<\/h3>\n<p>\u7b2c\u4e00\u6b65\uff1a\u5907\u4efd\u4f60\u7684\u539f\u955c\u50cf\u6587\u4ef6\uff0c\u4ee5\u514d\u51fa\u9519\u540e\u53ef\u4ee5\u6062\u590d\u3002<br \/>\nmv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup<br \/>\n\u7b2c\u4e8c\u6b65\uff1a\u4e0b\u8f7d\u65b0\u7684CentOS-Base.repo \u5230\/etc\/yum.repos.d\/<\/p>\n<div class=\"my-syntax-highlighter\">\n<pre><textarea id=\"mshighlighter\" class=\"mshighlighter\" language=\"shell\" name=\"mshighlighter\" >\r\nCentOS 5\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-5.repo\r\n\r\nCentOS 6\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo\r\n\r\nCentos 7\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/textarea><\/pre>\n<\/div>\n<p>\u66f4\u6539CentOS-Media.repo\u4f7f\u5176\u4e3a\u4e0d\u751f\u6548\uff1a<br \/>\nenabled=0<br \/>\n\u7b2c\u4e09\u6b65\uff1a\u8fd0\u884cyum makecache\u751f\u6210\u7f13\u5b58<br \/>\nyum clean all<br \/>\nyum makecache<\/p>\n<h3>\u7f51\u6613<\/h3>\n<p>\u7b2c\u4e00\u6b65\uff1a\u5907\u4efd\u4f60\u7684\u539f\u955c\u50cf\u6587\u4ef6\uff0c\u4ee5\u514d\u51fa\u9519\u540e\u53ef\u4ee5\u6062\u590d\u3002<br \/>\nmv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u4e0b\u8f7d\u65b0\u7684CentOS-Base.repo \u5230\/etc\/yum.repos.d\/<\/p>\n<div class=\"my-syntax-highlighter\">\n<pre><textarea id=\"mshighlighter\" class=\"mshighlighter\" language=\"shell\" name=\"mshighlighter\" >\r\nCentOS 5\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.163.com\/.help\/CentOS5-Base-163.repo\r\n\r\nCentOS 6\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.163.com\/.help\/CentOS6-Base-163.repo\r\n\r\nCentOS 7\r\nwget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.163.com\/.help\/CentOS7-Base-163.repo<\/textarea><\/pre>\n<\/div>\n<p>\u66f4\u6539CentOS-Media.repo\u4f7f\u5176\u4e3a\u4e0d\u751f\u6548\uff1a<br \/>\nenabled=0<br \/>\n3\u3001\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u7f13\u5b58<br \/>\nyum clean all<br \/>\nyum makecache<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u817e\u8baf \u7b2c\u4e00\u6b65\uff1a\u5907\u4efd\u4f60\u7684\u539f\u955c\u50cf\u6587\u4ef6\uff0c\u4ee5\u514d\u51fa\u9519\u540e\u53ef\u4ee5\u6062\u590d\u3002 mv \/etc\/yum.repos.d\/CentOS-Base.repo  &#8230;<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[8,7],"_links":{"self":[{"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":0,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yunvisit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}