自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

教你將 CentOS 8 操作系統(tǒng)遷移到 Oracle Linux

系統(tǒng) Linux
Oracle Linux 是從 RedHat Enterprise Linux 源代碼編譯而來,用 Oracle 的品牌取代了 Red Hat 品牌。Oracle 云和 Oracle 集成系統(tǒng)(如 Oracle Exadata 等)也使用它。

Oracle Linux 是 CentOS 8 的另一種替代方案。在本文中,將介紹如何將現(xiàn)有操作系統(tǒng)遷移到 Oracle Linux。

什么是Oracle Linux?

Oracle Linux 是從 RedHat Enterprise Linux 源代碼編譯而來,用 Oracle 的品牌取代了 Red Hat 品牌。Oracle 云和 Oracle 集成系統(tǒng)(如 Oracle Exadata 等)也使用它。

Oracle Linux 附帶兩個內(nèi)核,第一個是從各個 Red Hat Enterprise Linux (RHEL) 版本的源代碼編譯的默認(rèn) Linux 內(nèi)核。

第二個是 Unbreakable Enterprise Kernel (UEK),它是由 Oracle 構(gòu)建并通過 Oracle Linux 支持提供支持的 Linux 內(nèi)核。通過盡可能密切地跟蹤主線源代碼,它的重點(diǎn)是性能、穩(wěn)定性和最小的反向移植。UEK 經(jīng)過充分測試并用于為 Oracle 客戶運(yùn)行 Oracle 的集成系統(tǒng)、Oracle 云基礎(chǔ)設(shè)施和大型企業(yè)部署。

系統(tǒng)環(huán)境

CentOS 8 Minimal

檢查當(dāng)前的 Linux 操作系統(tǒng)

執(zhí)行以下命令來檢查 Linux 操作系統(tǒng)的版本。

[root@localhost ~]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 8.0.1905 (Core)

圖片

檢查當(dāng)前 Linux 內(nèi)核的版本。

[root@localhost ~]# uname -r
4.18.0-240.15.1.el8_3.x86_64

將 CentOS 8 遷移到 Oracle Linux

Oracle Github Repository 提供了一個 Linux bash 腳本centos2ol.sh。此腳本支持從 CentOS Linux 6、7 和 8 遷移,但不支持 CentOS Stream。

可以使用 wget 或 curl 命令輕松地從 GitHub 下載centos2ol.sh腳本。

[root@localhost ~]# wget https://raw.githubusercontent.com/oracle/centos2ol/main/centos2ol.sh

給centos2ol.sh添加可執(zhí)行權(quán)限:

[root@localhost ~]# chmod +x centos2ol.sh

準(zhǔn)備就緒后,執(zhí)行 centos2ol.sh 腳本以啟動 Linux 操作系統(tǒng)的遷移過程。

[root@localhost ~]# ./centos2ol.sh

圖片

centos2ol.sh 腳本列出了已安裝的軟件包,在遷移過程中,你的 Linux 操作系統(tǒng)軟件包已被相應(yīng)的 Oracle Linux 支持的軟件包替換。

centos2ol.sh 腳本已經(jīng)完成了它的工作。重新系統(tǒng)可以使用新的 Linux 內(nèi)核啟動你的操作系統(tǒng)。

[root@localhost ~]# reboot

在系統(tǒng)啟動期間,GRUB 菜單現(xiàn)在顯示 Oracle Linux Server 的兩個新條目。一個用于標(biāo)準(zhǔn) Linux 內(nèi)核,而另一個用于 Unbreakable Enterprise Kernel (UEK)。

圖片

檢查新的 Linux 操作系統(tǒng):

通過執(zhí)行以下命令檢查當(dāng)前操作系統(tǒng)版本。

[root@localhost ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.4"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:4:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.4
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.4

[root@localhost ~]# cat /etc/oracle-release
Oracle Linux Server release 8.4

還要檢查新 Linux 內(nèi)核的版本:

[root@localhost ~]# uname -r
5.4.17-2102.202.5.el8uek.x86_64

總    結(jié)

你的 CentOS 8 操作系統(tǒng)已成功遷移到 Oracle Linux 和 Unbreakable Enterprise Kernel。嘗試試驗?zāi)愕男虏僮飨到y(tǒng),看看它是一個好的 CentOS 替代品嗎?

圖片

責(zé)任編輯:武曉燕 來源: Linux就該這么學(xué)
相關(guān)推薦

2022-01-04 09:17:27

CentOS Linu操作系統(tǒng)Linux

2022-03-04 18:14:26

CentOSLinux

2021-07-05 08:00:00

LinuxCentOS腳本

2009-12-11 15:32:05

2018-01-30 12:50:40

Linux遷移圖形環(huán)境

2016-03-08 10:30:15

2011-03-23 12:25:52

Java MEOracle

2018-12-19 09:48:00

Linux網(wǎng)絡(luò)系統(tǒng)設(shè)置

2009-12-09 17:25:19

Linux操作系統(tǒng)

2009-11-16 16:51:11

操作系統(tǒng)Oracle優(yōu)

2016-11-11 00:00:16

MySQLOracle數(shù)據(jù)

2009-10-23 08:32:52

Linux操作系統(tǒng)Ubuntu

2013-06-21 13:49:08

MariaDB

2009-09-02 15:04:49

2010-03-15 14:33:24

Ubuntu Linu

2011-09-09 10:18:22

PHP

2018-07-10 14:46:04

LinuxShellsudo

2018-12-19 09:20:45

Linux遷移安裝軟件

2020-12-29 16:39:01

Linux代碼命令
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號