Use Tsinghua Remi mirrors on all mainland EL releases

This commit is contained in:
2026-11-21 20:36:33 +09:00
parent 3caa19ef41
commit 66fd3ba06f
2 changed files with 33 additions and 14 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# RHEL PHP
在RHEL Linux中自动安装PHP
本脚本会自动检测RHEL系统和是否位于中国,安装对应的Remi源(中国的RHEL9服务器将安装中国特色源)
本脚本会自动检测系统的 RHEL 主版本,并安装对应版本的 Remi 仓库包。检测到服务器位于中国大陆时,会在安装 PHP 前将 Remi 仓库(包括 `remi-safe` 和 `remi-modular`)切换到清华大学 TUNA 镜像,适用于脚本支持的各个 RHEL 主版本。其他地区使用 Remi 仓库包的默认配置。
并检查系统空闲内存,对于内存<2G,且空余硬盘空间>5G的系统,将自动装载4G的swap以防止yum被杀
@@ -13,4 +13,4 @@
wget https://git.laysense.com/laysense/rhelphp/raw/branch/main/rhelphp.bash
bash ./rhelphp.bash
bash ./rhelphp.bash