{"id":1091,"date":"2020-04-26T13:57:06","date_gmt":"2020-04-26T05:57:06","guid":{"rendered":"http:\/\/39.97.231.10\/?p=1091"},"modified":"2020-04-26T13:57:06","modified_gmt":"2020-04-26T05:57:06","slug":"%e6%9b%b4%e6%8d%a2%e9%98%bf%e9%87%8c%e4%ba%91centos%e9%95%9c%e5%83%8f%e6%ba%90","status":"publish","type":"post","link":"http:\/\/www.weijing.co\/?p=1091","title":{"rendered":"\u66f4\u6362\u963f\u91cc\u4e91Centos\u955c\u50cf\u6e90"},"content":{"rendered":"<h2 style=\\\"padding-left: 40px;\\\"><strong>\u4ecb\u7ecd<\/strong><\/h2>\n<p style=\\\"padding-left: 40px;\\\">CentOS \u662f\u57fa\u4e8e Red Hat Linux \u63d0\u4f9b\u7684\u53ef\u81ea\u7531\u4f7f\u7528\u6e90\u4ee3\u7801\u7684\u4f01\u4e1a\u7ea7 Linux \u53d1\u884c\u7248\u672c\uff1b\u662f\u4e00\u4e2a\u7a33\u5b9a\uff0c\u53ef\u9884\u6d4b\uff0c\u53ef\u7ba1\u7406\u548c\u53ef\u590d\u5236\u7684\u514d\u8d39\u4f01\u4e1a\u7ea7\u8ba1\u7b97\u5e73\u53f0\u3002<\/p>\n<h2 style=\\\"padding-left: 40px;\\\"><strong>\u914d\u7f6e\u65b9\u6cd5<\/strong><\/h2>\n<ul>\n<li>\u5907\u4efd<\/li>\n<\/ul>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">mv \/etc\/yum.repos.d\/CentOS-Base.repo \/etc\/yum.repos.d\/CentOS-Base.repo.backup<\/pre>\n<ul>\n<li>\u4e0b\u8f7d\u6700\u65b0\u7684 CentOS-Base.repo \u5230 \/etc\/yum.repos.d\/<\/li>\n<\/ul>\n<p style=\\\"padding-left: 40px;\\\"><strong>CentOS 6<\/strong><\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo<\/pre>\n<p style=\\\"padding-left: 40px;\\\">\u6216\u662f<\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">curl -o \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-6.repo<\/pre>\n<p style=\\\"padding-left: 40px;\\\"><strong>CentOS 7<\/strong><\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/pre>\n<p style=\\\"padding-left: 40px;\\\">\u6216\u662f<\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">curl -o \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/pre>\n<p style=\\\"padding-left: 40px;\\\"><strong>CentOS 8<\/strong><\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">wget -O \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-8.repo<\/pre>\n<p style=\\\"padding-left: 40px;\\\">\u6216\u662f<\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">curl -o \/etc\/yum.repos.d\/CentOS-Base.repo http:\/\/mirrors.aliyun.com\/repo\/Centos-8.repo<\/pre>\n<h2 style=\\\"padding-left: 40px;\\\"><strong>\u8fd0\u884c yum makecache \u751f\u6210\u7f13\u5b58<\/strong><\/h2>\n<h2 style=\\\"padding-left: 40px;\\\"><strong>\u62a5\u9519\u5904\u7406<\/strong><\/h2>\n<p style=\\\"padding-left: 40px;\\\">\u975e\u963f\u91cc\u4e91ECS\u7528\u6237\u4f1a\u51fa\u73b0 Couldn\\&#8217;t resolve host \\&#8217;mirrors.cloud.aliyuncs.com\\&#8217; \u4fe1\u606f\uff0c\u4e0d\u5f71\u54cd\u4f7f\u7528\u3002\u7528\u6237\u4e5f\u53ef\u81ea\u884c\u4fee\u6539\u76f8\u5173\u914d\u7f6e\u3002<\/p>\n<pre class=\\\"rich-text editor-rich-text__editable block-editor-rich-text__editable is-selected\\\" style=\\\"padding-left: 40px;\\\" role=\\\"textbox\\\" contenteditable=\\\"true\\\" aria-multiline=\\\"true\\\" aria-label=\\\"\u7f16\u5199\u9884\u683c\u5f0f\u5316\u6587\u672c\u2026\\\">sed -i -e \\'\/mirrors.cloud.aliyuncs.com\/d\\' -e \\'\/mirrors.aliyuncs.com\/d\\' \/etc\/yum.repos.d\/CentOS-Base.repo<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd CentOS \u662f\u57fa\u4e8e Red Hat Linux \u63d0\u4f9b\u7684\u53ef\u81ea\u7531\u4f7f\u7528\u6e90\u4ee3\u7801\u7684\u4f01\u4e1a\u7ea7 Linux \u53d1\u884c\u7248\u672c\uff1b &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"http:\/\/www.weijing.co\/?p=1091\"> <span class=\"screen-reader-text\">\u66f4\u6362\u963f\u91cc\u4e91Centos\u955c\u50cf\u6e90<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[102],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"shop_catalog":false,"shop_single":false,"shop_thumbnail":false},"uagb_author_info":{"display_name":"weijing","author_link":"http:\/\/www.weijing.co\/?author=4"},"uagb_comment_info":0,"uagb_excerpt":"\u4ecb\u7ecd CentOS \u662f\u57fa\u4e8e Red Hat Linux \u63d0\u4f9b\u7684\u53ef\u81ea\u7531\u4f7f\u7528\u6e90\u4ee3\u7801\u7684\u4f01\u4e1a\u7ea7 Linux \u53d1\u884c\u7248\u672c\uff1b&hellip;","_links":{"self":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1091"}],"collection":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1091"}],"version-history":[{"count":0,"href":"http:\/\/www.weijing.co\/index.php?rest_route=\/wp\/v2\/posts\/1091\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1091"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.weijing.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}