# 安裝基本系統

Rocky Linux 8 系統安裝的部份，可以參考 [Rocky Linux 8 基本安裝](https://docs.ossii.com.tw/books/rocky-linux-8 "Rocky Linux 8 基本安裝") 文件，本文安裝的元件及版本列表如下：

<p class="callout info">MariaDB 10.x 系列</p>

[![image-1653981543348.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/scaled-1680-/image-1653981543348.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/image-1653981543348.png)

和 CentOS 7 系列的不同，Rocky Linux 8 預設就可以直接安裝 MariaDB 10 系列的版本，不需要再額外建立第三方 yum repo 設定檔，MariaDB 10 系列版本的效能改善明顯，並且支援 Galera Cluster 的叢集架構，非常高效。

<p class="callout info">Apache 2.4 系列</p>

[![image-1653981569271.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/scaled-1680-/image-1653981569271.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/image-1653981569271.png)

Rocky Linux 8 依舊採用 httpd 2.4 系列的版本，不過由於 CentOS 7 最新的版本僅到 2.4.6，而 Rocky Linux 已經支援到 2.4.37，這中間仍有不小差異，2.4.6 更多著重在安全性及穩定性的更新，而 2.4.37 會提供更多功能及效能上的改進優勢。

<p class="callout info">PHP 8.x 系列</p>

[![image-1653981646140.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/scaled-1680-/image-1653981646140.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/image-1653981646140.png)

比較讓我意外的是，Rocky Linux 8 預設採用的 PHP 版本仍是 7.2 系列，在此我們會以 PHP 8 來進行佈署示範，以 [PHP 官方](https://www.php.net/supported-versions.php)提供的資訊來說，7.2 版本已經在 2021 年 1 月停止維護，7.4 版本即將在 2022 年 11 月停止維謢護，故目前建議可以考慮評估 8.0 或是之後的 8.1 版本。

<p class="callout info">phpMyAdmin 5.2 系列</p>

[![image-1653981773252.png](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/scaled-1680-/image-1653981773252.png)](https://docs.ossii.com.tw/uploads/images/gallery/2022-05/image-1653981773252.png)

目前在 Rocky Linux 8 上，暫時只能以 tarball 型態安裝 phpmyadmin (基本上我希望儘量都用 RPM 模式安裝，以減少更新的複雜度)，日後若有出 RPM 封裝的 Repo 的話，會再另行更新安裝方式。