{"id":580,"date":"2020-05-02T19:34:26","date_gmt":"2020-05-02T11:34:26","guid":{"rendered":"http:\/\/luodonggan.com\/wordpress\/?p=580"},"modified":"2020-05-02T19:35:36","modified_gmt":"2020-05-02T11:35:36","slug":"%e2%80%8b%e6%a0%91%e8%8e%93%e6%b4%becentos%e7%9a%84%e6%ba%90%e6%9b%b4%e6%8d%a2%e5%90%8e%e4%b8%80%e7%9b%b4%e6%b2%a1%e6%9c%89%e5%8a%9e%e6%b3%95%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"http:\/\/8.152.216.154:8081\/?p=580","title":{"rendered":"\u200b\u6811\u8393\u6d3eCENTOS\u7684\u6e90\u66f4\u6362\u540e\u4e00\u76f4\u6ca1\u6709\u529e\u6cd5\u66f4\u65b0"},"content":{"rendered":"<p><strong>\u6811\u8393\u6d3eCENTOS\u7684\u6e90\u66f4\u6362\u540e\u4e00\u76f4\u6ca1\u6709\u529e\u6cd5\u66f4\u65b0<\/strong><\/p>\n<pre style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word;\"><br\/><\/pre>\n<ul class=\" list-paddingleft-2\" style=\"margin-left: 30px; width: 1299.59px; padding: 0px; white-space: normal; word-break: break-all; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\">\n<li>\n<p>\u5907\u4efd\u7cfb\u7edf\u955c\u50cf\u6e90<\/p>\n<\/li>\n<\/ul>\n<pre style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word;\">mv&nbsp;\/etc\/yum.repos.d\/CentOS-Base.repo&nbsp;\/etc\/yum.repos.d\/CentOS-Base.repo.backup<\/pre>\n<ul class=\" list-paddingleft-2\" style=\"margin-left: 30px; width: 1299.59px; padding: 0px; white-space: normal; word-break: break-all; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\">\n<li>\n<p>\u4e0b\u8f7d\u963f\u91cc\u955c\u50cf\u6e90,\u5982\u679c\u6ca1\u6709<code style=\"margin: 0px; padding: 0px;\">wget<\/code>,\u4f7f\u7528<code style=\"margin: 0px; padding: 0px;\">yum install wget<\/code>\u5b89\u88c5<\/p>\n<\/li>\n<\/ul>\n<pre style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word;\">wget&nbsp;-O&nbsp;\/etc\/yum.repos.d\/CentOS-Base.repo&nbsp;http:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/pre>\n<ul class=\" list-paddingleft-2\" style=\"margin-left: 30px; width: 1299.59px; padding: 0px; white-space: normal; word-break: break-all; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\">\n<li>\n<p>\u8fd0\u884cyum makecache\u751f\u6210\u7f13\u5b58<\/p>\n<\/li>\n<\/ul>\n<h3 style=\"background-image: none; margin: 10px 0px; font-size: 16px; color: rgb(75, 75, 79); line-height: 1.5;\">yum makecache<\/h3>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u62a5\u9519\uff0c\u5176\u5b9e\u5c31\u662f\u627e\u4e0d\u5230XML\u6587\u4ef6\u7684\u539f\u56e0\uff1a<\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">[root@centos-rpi3 yum.repos.d]# yum makecache<br \/>Loaded plugins: fastestmirror<br \/>http:\/\/mirrors.aliyun.com\/centos\/7\/os\/armhfp\/repodata\/repomd.xml: [Errno 14] HTTP Error 404 &#8211; Not Found<br \/>Trying other mirror.<br \/>To address this issue please refer to the below knowledge base article<\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u89e3\u51b3\u65b9\u5f0f\uff1a<\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u7f16\u8f91Centos-7.repo\u6587\u4ef6\uff1a<\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u5c06\uff1a<\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">http:\/\/mirrors.aliyuns.com\/centos\/$releasever\/os\/<span style=\"background-color: rgb(255, 255, 0); line-height: 1.5; color: rgb(255, 0, 0);\">$basearch\/<\/span><\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u66f4\u6539\u4e3a\uff1a<br \/>http:\/\/mirrors.aliyuncs.com\/centos\/$releasever\/os\/<span style=\"background-color: rgb(255, 255, 0); line-height: 1.5; color: rgb(255, 0, 0);\">x86_64\/<\/span><\/span><\/p>\n<p style=\"margin: 10px auto;\"><span style=\"background-color: rgb(255, 255, 0);\">\u5b58\u76d8\uff0c\u91cd\u65b0\u6267\u884c<\/span><\/p>\n<h3 style=\"background-image: none; margin: 10px 0px; font-size: 16px; color: rgb(75, 75, 79); line-height: 1.5;\">yum makecache<\/h3>\n<p style=\"margin: 10px auto;\">\u6210\u529f<\/p>\n<ul style=\"margin-left: 30px; padding: 0px; word-break: break-all; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\" class=\" list-paddingleft-2\">\n<li>\n<p>\u7136\u540e\u66f4\u65b0<\/p>\n<\/li>\n<\/ul>\n<pre style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word;\">yum&nbsp;update<\/pre>\n<ul style=\"margin-left: 30px; padding: 0px; word-break: break-all; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\" class=\" list-paddingleft-2\">\n<li>\n<p>\u589e\u52a0epal\u6e90<\/p>\n<\/li>\n<\/ul>\n<pre style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word;\">\/\/&nbsp;\u5b89\u88c5epel\u6e90yum&nbsp;install&nbsp;epel-release\/\/&nbsp;\u4fee\u6539\u4e3a\u963f\u91cc\u7684epel\u6e90\r\nwget&nbsp;-O&nbsp;\/etc\/yum.repos.d\/epel.repo&nbsp;http:\/\/mirrors.aliyun.com\/repo\/epel-7.repo\/\/&nbsp;\u5b89\u88c5yum\u6e90\u4f18\u5148\u7ea7\u7ba1\u7406\u5de5\u5177\r\nyum&nbsp;install&nbsp;-y&nbsp;yum-priorities\/\/&nbsp;\u6dfb\u52a0\u4f18\u5148\u7ea7\uff08\u6570\u5b57\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\uff09\r\nvim&nbsp;\/etc\/yum.repo.d\/epel.repo\r\npriority=88\/\/&nbsp;\u6dfb\u52a0\u4f18\u5148\u7ea7\uff08\u8fd9\u4e2a\u6570\u8981\u5c0f\u4e8eepel\u91cc\u768488\u5373\u53ef\uff09\r\nvim&nbsp;\/etc\/yum.repo.d\/Centos-7.repo\r\npriority=6\/\/&nbsp;\u5f00\u542fyum\u6e90\u4f18\u5148\u7ea7\u529f\u80fd\r\nvim&nbsp;\/etc\/yum\/pluginconf.d\/priorities.conf\/\/&nbsp;\u786e\u4fdd\u6587\u4ef6\u5185\u5bb9\u5305\u542b\u5982\u4e0b\uff1a\r\n[main]&nbsp;&nbsp;enabled=1\r\n&lt;wiz_tmp_tag&nbsp;id=&quot;wiz-table-range-border&quot;&nbsp;contenteditable=&quot;false&quot;&nbsp;style=&quot;display:&nbsp;none;&quot;&gt;<\/pre>\n<p style=\"margin: 10px auto; padding: 0px; font-family: verdana, &quot;ms song&quot;, \u5b8b\u4f53, Arial, \u5fae\u8f6f\u96c5\u9ed1, Helvetica, sans-serif; font-size: 12px; white-space: normal; background-color: rgb(255, 255, 255);\"><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6811\u8393\u6d3eCENTOS\u7684\u6e90\u66f4\u6362\u540e\u4e00\u76f4\u6ca1\u6709\u529e\u6cd5\u66f4\u65b0 \u5907\u4efd\u7cfb\u7edf\u955c\u50cf\u6e90 mv&nbsp;\/etc\/yum.repos.d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[74],"tags":[72],"_links":{"self":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/580"}],"collection":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=580"}],"version-history":[{"count":1,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions"}],"predecessor-version":[{"id":581,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=\/wp\/v2\/posts\/580\/revisions\/581"}],"wp:attachment":[{"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=580"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/8.152.216.154:8081\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}