{"id":228608,"date":"2021-10-27T08:40:00","date_gmt":"2021-10-27T00:40:00","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=228608"},"modified":"2021-10-20T16:40:11","modified_gmt":"2021-10-20T08:40:11","slug":"centos8-migrate-to-oracle","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos8-migrate-to-oracle.html","title":{"rendered":"\u5c06 CentOS 8 \u64cd\u4f5c\u7cfb\u7edf\u8fc1\u79fb\u5230 Oracle Linux"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nOracle Linux \u662f CentOS 8 \u7684\u53e6\u4e00\u79cd\u66ff\u4ee3\u65b9\u6848\u3002\u5728\u672c\u6587\u4e2d\uff0c\u5c06\u4ecb\u7ecd\u5982\u4f55\u5c06\u73b0\u6709\u64cd\u4f5c\u7cfb\u7edf\u8fc1\u79fb\u5230 Oracle Linux\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4ec0\u4e48\u662fOracle Linux\uff1f<\/strong><\/div>\n

Oracle Linux \u662f\u4ece RedHat Enterprise Linux \u6e90\u4ee3\u7801\u7f16\u8bd1\u800c\u6765\uff0c\u7528 Oracle \u7684\u54c1\u724c\u53d6\u4ee3\u4e86 Red Hat \u54c1\u724c\u3002Oracle \u4e91\u548c Oracle \u96c6\u6210\u7cfb\u7edf\uff08\u5982 Oracle Exadata \u7b49\uff09\u4e5f\u4f7f\u7528\u5b83\u3002<\/p>\n

Oracle Linux \u9644\u5e26\u4e24\u4e2a\u5185\u6838\uff0c\u7b2c\u4e00\u4e2a\u662f\u4ece\u5404\u4e2a Red Hat Enterprise Linux (RHEL) \u7248\u672c\u7684\u6e90\u4ee3\u7801\u7f16\u8bd1\u7684\u9ed8\u8ba4 Linux \u5185\u6838\u3002<\/p>\n

\u7b2c\u4e8c\u4e2a\u662f Unbreakable Enterprise Kernel (UEK)\uff0c\u5b83\u662f\u7531 Oracle \u6784\u5efa\u5e76\u901a\u8fc7 Oracle Linux \u652f\u6301\u63d0\u4f9b\u652f\u6301\u7684 Linux \u5185\u6838\u3002\u901a\u8fc7\u5c3d\u53ef\u80fd\u5bc6\u5207\u5730\u8ddf\u8e2a\u4e3b\u7ebf\u6e90\u4ee3\u7801\uff0c\u5b83\u7684\u91cd\u70b9\u662f\u6027\u80fd\u3001\u7a33\u5b9a\u6027\u548c\u6700\u5c0f\u7684\u53cd\u5411\u79fb\u690d\u3002UEK \u7ecf\u8fc7\u5145\u5206\u6d4b\u8bd5\u5e76\u7528\u4e8e\u4e3a Oracle \u5ba2\u6237\u8fd0\u884c Oracle \u7684\u96c6\u6210\u7cfb\u7edf\u3001Oracle \u4e91\u57fa\u7840\u8bbe\u65bd\u548c\u5927\u578b\u4f01\u4e1a\u90e8\u7f72\u3002<\/p>\n

\u7cfb\u7edf\u73af\u5883<\/strong><\/div>\n

CentOS 8 Minimal<\/p>\n

\u68c0\u67e5\u5f53\u524d\u7684 Linux \u64cd\u4f5c\u7cfb\u7edf<\/strong><\/div>\n

\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5 Linux \u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\u3002<\/p>\n

\r\n[root@localhost ~]# cat \/etc\/os-release \r\nNAME=\"CentOS Linux\"\r\nVERSION=\"8 (Core)\"\r\nID=\"centos\"\r\nID_LIKE=\"rhel fedora\"\r\nVERSION_ID=\"8\"\r\nPLATFORM_ID=\"platform:el8\"\r\nPRETTY_NAME=\"CentOS Linux 8 (Core)\"\r\nANSI_COLOR=\"0;31\"\r\nCPE_NAME=\"cpe:\/o:centos:centos:8\"\r\nHOME_URL=\"https:\/\/www.centos.org\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.centos.org\/\"\r\n\r\nCENTOS_MANTISBT_PROJECT=\"CentOS-8\"\r\nCENTOS_MANTISBT_PROJECT_VERSION=\"8\"\r\nREDHAT_SUPPORT_PRODUCT=\"centos\"\r\nREDHAT_SUPPORT_PRODUCT_VERSION=\"8\"\r\n\r\n[root@localhost ~]# cat \/etc\/centos-release\r\nCentOS Linux release 8.0.1905 (Core) \r\n<\/pre>\n

\"\"
\n\u68c0\u67e5\u5f53\u524d Linux \u5185\u6838\u7684\u7248\u672c\u3002<\/p>\n

\r\n[root@localhost ~]# uname -r\r\n4.18.0-240.15.1.el8_3.x86_64\r\n<\/pre>\n
\u5c06 CentOS 8 \u8fc1\u79fb\u5230 Oracle Linux<\/strong><\/div>\n

Oracle Github Repository \u63d0\u4f9b\u4e86\u4e00\u4e2a Linux bash \u811a\u672ccentos2ol.sh<\/code>\u3002\u6b64\u811a\u672c\u652f\u6301\u4ece CentOS Linux 6\u30017 \u548c 8 \u8fc1\u79fb\uff0c\u4f46\u4e0d\u652f\u6301 CentOS Stream\u3002<\/p>\n

\u53ef\u4ee5\u4f7f\u7528 wget \u6216 curl \u547d\u4ee4\u8f7b\u677e\u5730\u4ece GitHub \u4e0b\u8f7dcentos2ol.sh<\/code>\u811a\u672c\u3002<\/p>\n

\r\n[root@localhost ~]# wget https:\/\/raw.githubusercontent.com\/oracle\/centos2ol\/main\/centos2ol.sh\r\n<\/pre>\n

\u7ed9centos2ol.sh<\/code>\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\uff1a<\/p>\n

\r\n[root@localhost ~]# chmod +x centos2ol.sh \r\n<\/pre>\n

\u51c6\u5907\u5c31\u7eea\u540e\uff0c\u6267\u884c centos2ol.sh \u811a\u672c\u4ee5\u542f\u52a8 Linux \u64cd\u4f5c\u7cfb\u7edf\u7684\u8fc1\u79fb\u8fc7\u7a0b\u3002<\/p>\n

\r\n[root@localhost ~]# .\/centos2ol.sh\r\n<\/pre>\n

\"\"
\ncentos2ol.sh \u811a\u672c\u5217\u51fa\u4e86\u5df2\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u5728\u8fc1\u79fb\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u7684 Linux \u64cd\u4f5c\u7cfb\u7edf\u8f6f\u4ef6\u5305\u5df2\u88ab\u76f8\u5e94\u7684 Oracle Linux \u652f\u6301\u7684\u8f6f\u4ef6\u5305\u66ff\u6362\u3002<\/p>\n

centos2ol.sh \u811a\u672c\u5df2\u7ecf\u5b8c\u6210\u4e86\u5b83\u7684\u5de5\u4f5c\u3002\u91cd\u65b0\u7cfb\u7edf\u53ef\u4ee5\u4f7f\u7528\u65b0\u7684 Linux \u5185\u6838\u542f\u52a8\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n

\r\n[root@localhost ~]# reboot\r\n<\/pre>\n

\u5728\u7cfb\u7edf\u542f\u52a8\u671f\u95f4\uff0cGRUB \u83dc\u5355\u73b0\u5728\u663e\u793a Oracle Linux Server \u7684\u4e24\u4e2a\u65b0\u6761\u76ee\u3002\u4e00\u4e2a\u7528\u4e8e\u6807\u51c6 Linux \u5185\u6838\uff0c\u800c\u53e6\u4e00\u4e2a\u7528\u4e8e Unbreakable Enterprise Kernel (UEK)\u3002
\n\"\"<\/p>\n

\u68c0\u67e5\u65b0\u7684 Linux \u64cd\u4f5c\u7cfb\u7edf\uff1a<\/strong><\/div>\n

\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3002<\/p>\n

\r\n[root@localhost ~]# cat \/etc\/os-release\r\nNAME=\"Oracle Linux Server\"\r\nVERSION=\"8.4\"\r\nID=\"ol\"\r\nID_LIKE=\"fedora\"\r\nVARIANT=\"Server\"\r\nVARIANT_ID=\"server\"\r\nVERSION_ID=\"8.4\"\r\nPLATFORM_ID=\"platform:el8\"\r\nPRETTY_NAME=\"Oracle Linux Server 8.4\"\r\nANSI_COLOR=\"0;31\"\r\nCPE_NAME=\"cpe:\/o:oracle:linux:8:4:server\"\r\nHOME_URL=\"https:\/\/linux.oracle.com\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugzilla.oracle.com\/\"\r\n\r\nORACLE_BUGZILLA_PRODUCT=\"Oracle Linux 8\"\r\nORACLE_BUGZILLA_PRODUCT_VERSION=8.4\r\nORACLE_SUPPORT_PRODUCT=\"Oracle Linux\"\r\nORACLE_SUPPORT_PRODUCT_VERSION=8.4\r\n\r\n[root@localhost ~]# cat \/etc\/oracle-release\r\nOracle Linux Server release 8.4\r\n<\/pre>\n

\u8fd8\u8981\u68c0\u67e5\u65b0 Linux \u5185\u6838\u7684\u7248\u672c\uff1a<\/p>\n

\r\n[root@localhost ~]# uname -r\r\n5.4.17-2102.202.5.el8uek.x86_64\r\n<\/pre>\n
\u603b\u7ed3<\/strong><\/div>\n

\u4f60\u7684 CentOS 8 \u64cd\u4f5c\u7cfb\u7edf\u5df2\u6210\u529f\u8fc1\u79fb\u5230 Oracle Linux \u548c Unbreakable Enterprise Kernel\u3002\u5c1d\u8bd5\u8bd5\u9a8c\u4f60\u7684\u65b0\u64cd\u4f5c\u7cfb\u7edf\uff0c\u770b\u770b\u5b83\u662f\u4e00\u4e2a\u597d\u7684 CentOS \u66ff\u4ee3\u54c1\u5417\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"

Oracle Linux \u662f\u4ece RedHat Enterprise Linux \u6e90\u4ee3\u7801\u7f16\u8bd1\u800c\u6765\uff0c\u7528 Oracl […]<\/p>\n","protected":false},"author":309,"featured_media":228614,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-228608","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=228608"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228608\/revisions"}],"predecessor-version":[{"id":228613,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/228608\/revisions\/228613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/228614"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=228608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=228608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=228608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}