{"id":45220,"date":"2024-10-06T21:20:13","date_gmt":"2024-10-06T13:20:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/45220\/"},"modified":"2024-10-06T21:20:13","modified_gmt":"2024-10-06T13:20:13","slug":"%e5%a6%82%e4%bd%95%e5%b0%87-centos-7-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/45220\/","title":{"rendered":"\u5982\u4f55\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8"},"content":{"rendered":"<h1 id=\"%e5%a6%82%e4%bd%95%e5%b0%87-centos-7-%e5%8d%87%e7%b4%9a%e5%88%b0-centos-8-rmstWRGxPW\">\u5982\u4f55\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8<\/h1>\n<p>CentOS \u662f\u4e00\u500b\u57fa\u65bc Red Hat Enterprise Linux (RHEL) \u7684\u958b\u6e90\u64cd\u4f5c\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u4f3a\u670d\u5668\u74b0\u5883\u3002\u96a8\u8457 CentOS 8 \u7684\u63a8\u51fa\uff0c\u8a31\u591a\u7528\u6236\u5e0c\u671b\u5c07\u5176\u7cfb\u7d71\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u672c\u6587\u5c07\u8a73\u7d30\u4ecb\u7d39\u5982\u4f55\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8 \u7684\u6b65\u9a5f\u3002<\/p>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99-rmstWRGxPW\">\u5347\u7d1a\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u9032\u884c\u5347\u7d1a\u4e4b\u524d\uff0c\u5efa\u8b70\u7528\u6236\u505a\u597d\u4ee5\u4e0b\u6e96\u5099\uff1a<\/p>\n<ul>\n<li><strong>\u5099\u4efd\u6578\u64da\uff1a<\/strong>\u5728\u5347\u7d1a\u904e\u7a0b\u4e2d\uff0c\u6578\u64da\u4e1f\u5931\u7684\u98a8\u96aa\u59cb\u7d42\u5b58\u5728\uff0c\u56e0\u6b64\u52d9\u5fc5\u5099\u4efd\u91cd\u8981\u6578\u64da\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u7cfb\u7d71\u8981\u6c42\uff1a<\/strong>\u78ba\u4fdd\u60a8\u7684\u786c\u9ad4\u7b26\u5408 CentOS 8 \u7684\u8981\u6c42\uff0c\u7279\u5225\u662f CPU \u548c\u5167\u5b58\u3002<\/li>\n<li><strong>\u66f4\u65b0\u7576\u524d\u7cfb\u7d71\uff1a<\/strong>\u5728\u5347\u7d1a\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd CentOS 7 \u7cfb\u7d71\u5df2\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u66f4\u65b0\uff1a<\/li>\n<\/ul>\n<pre><code>sudo yum update<\/code><\/pre>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e6%ad%a5%e9%a9%9f-rmstWRGxPW\">\u5347\u7d1a\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8 \u7684\u5177\u9ad4\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e5%ae%89%e8%a3%9d-elevate-%e5%b7%a5%e5%85%b7-rmstWRGxPW\">1. \u5b89\u88dd ELevate \u5de5\u5177<\/h3>\n<p>CentOS \u63d0\u4f9b\u4e86\u4e00\u500b\u540d\u70ba ELevate \u7684\u5de5\u5177\u4f86\u5e6b\u52a9\u7528\u6236\u9032\u884c\u5347\u7d1a\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88dd ELevate \u5de5\u5177\uff1a<\/p>\n<pre><code>sudo yum install -y https:\/\/repo.almalinux.org\/almalinux\/8.5\/x86_64\/os\/Packages\/elevate-1.0.0-1.el8.x86_64.rpm<\/code><\/pre>\n<h3 id=\"2-%e5%9f%b7%e8%a1%8c%e5%8d%87%e7%b4%9a-rmstWRGxPW\">2. \u57f7\u884c\u5347\u7d1a<\/h3>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u958b\u59cb\u5347\u7d1a\u904e\u7a0b\uff1a<\/p>\n<pre><code>sudo elevate<\/code><\/pre>\n<p>\u9019\u500b\u547d\u4ee4\u6703\u81ea\u52d5\u6aa2\u67e5\u7cfb\u7d71\u4e26\u958b\u59cb\u5347\u7d1a\u904e\u7a0b\u3002\u6839\u64da\u7cfb\u7d71\u7684\u4e0d\u540c\uff0c\u9019\u500b\u904e\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u6642\u9593\u3002<\/p>\n<h3 id=\"3-%e9%87%8d%e5%95%9f%e7%b3%bb%e7%b5%b1-rmstWRGxPW\">3. \u91cd\u555f\u7cfb\u7d71<\/h3>\n<p>\u5347\u7d1a\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u91cd\u555f\u7cfb\u7d71\u4ee5\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code>sudo reboot<\/code><\/pre>\n<h3 id=\"4-%e9%a9%97%e8%ad%89%e5%8d%87%e7%b4%9a-rmstWRGxPW\">4. \u9a57\u8b49\u5347\u7d1a<\/h3>\n<p>\u7cfb\u7d71\u91cd\u555f\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6aa2\u67e5\u7576\u524d\u7684 CentOS \u7248\u672c\uff1a<\/p>\n<pre><code>cat \/etc\/centos-release<\/code><\/pre>\n<p>\u5982\u679c\u986f\u793a\u7684\u662f CentOS 8 \u7684\u7248\u672c\u865f\uff0c\u5247\u8868\u793a\u5347\u7d1a\u6210\u529f\u3002<\/p>\n<h2 id=\"%e5%8d%87%e7%b4%9a%e5%be%8c%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-rmstWRGxPW\">\u5347\u7d1a\u5f8c\u7684\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5347\u7d1a\u5b8c\u6210\u5f8c\uff0c\u5efa\u8b70\u7528\u6236\u6aa2\u67e5\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li><strong>\u6aa2\u67e5\u670d\u52d9\u72c0\u614b\uff1a<\/strong>\u78ba\u4fdd\u6240\u6709\u91cd\u8981\u670d\u52d9\u6b63\u5e38\u904b\u884c\u3002<\/li>\n<li><strong>\u66f4\u65b0\u61c9\u7528\u7a0b\u5e8f\uff1a<\/strong>\u67d0\u4e9b\u61c9\u7528\u7a0b\u5e8f\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u4ee5\u517c\u5bb9 CentOS 8\u3002<\/li>\n<li><strong>\u6aa2\u67e5\u9632\u706b\u7246\u8a2d\u7f6e\uff1a<\/strong>\u5347\u7d1a\u5f8c\uff0c\u9632\u706b\u7246\u8a2d\u7f6e\u53ef\u80fd\u6703\u6709\u6240\u8b8a\u66f4\uff0c\u8acb\u6aa2\u67e5\u4e26\u78ba\u4fdd\u5176\u6b63\u78ba\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-rmstWRGxPW\">\u7e3d\u7d50<\/h2>\n<p>\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8 \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\u5373\u53ef\u5b8c\u6210\u3002\u5347\u7d1a\u5f8c\uff0c\u60a8\u5c07\u80fd\u5920\u4eab\u53d7\u5230\u66f4\u597d\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u5982\u679c\u60a8\u5728\u5347\u7d1a\u904e\u7a0b\u4e2d\u9047\u5230\u4efb\u4f55\u554f\u984c\uff0c\u5efa\u8b70\u5c0b\u6c42\u5c08\u696d\u7684\u6280\u8853\u652f\u6301\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u7684\u4f3a\u670d\u5668\u89e3\u6c7a\u65b9\u6848\u7684\u7528\u6236\uff0c<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u548c <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u662f\u4e0d\u932f\u7684\u9078\u64c7\uff0c\u80fd\u5920\u63d0\u4f9b\u53ef\u9760\u7684\u670d\u52d9\u548c\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5c07 CentOS 7 \u5347\u7d1a\u5230 CentOS 8 \u7684\u6b65\u9a5f\uff0c\u5305\u62ec\u5099\u4efd\u3001\u5347\u7d1a\u5de5\u5177\u548c\u6ce8\u610f\u4e8b\u9805\uff0c\u78ba\u4fdd\u7cfb\u7d71\u5e73\u7a69\u904e\u6e21\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-45220","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=45220"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45220\/revisions"}],"predecessor-version":[{"id":45221,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45220\/revisions\/45221"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=45220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=45220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=45220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}