rhelphp/readme.md

16 lines
587 B
Markdown
Raw Permalink Normal View History

2025-01-10 18:13:06 +08:00
# RHEL PHP
在RHEL Linux中自动安装PHP
本脚本会自动检测RHEL系统和是否位于中国安装对应的Remi源(中国的RHEL9服务器将安装中国特色源)
2025-01-10 18:13:18 +08:00
2025-01-10 18:13:06 +08:00
并检查系统空闲内存对于内存2G且空余硬盘空间5G的系统将自动装载4G的swap以防止yum被杀
2025-01-10 18:13:18 +08:00
2025-01-10 18:13:06 +08:00
安装过程中仅需输入一次安装版本如84即意味着安装php8.4
2025-01-10 18:13:18 +08:00
2025-01-10 18:13:06 +08:00
安装完成后还将自动安装composer并为中国大陆服务器配置特色阿里云镜像源
2025-01-10 18:13:18 +08:00
2025-01-10 18:13:06 +08:00
wget https://git.laysense.com/laysense/rhelphp/raw/branch/main/rhelphp.bash
2025-01-10 18:13:18 +08:00
2025-01-10 18:13:06 +08:00
bash ./rhelphp.bash