LCMP 一键安装脚本
LCMP 一键安装脚本是一个用 Bash Shell 编写的,安装 LCMP (Linux + Caddy + MariaDB + PHP) 生产环境的 Shell 脚本。
本脚本全部采用 rpm 或 deb 包(二进制)安装的方式来安装 LCMP 环境。
Caddy 由 Teddysun Repository 提供。
MariaDB 由 MariaDB Repository 提供。
PHP 的 rpm 由 Remi Repository 提供,deb 由 deb.sury.org 提供。
你可以在执行完本脚本后继续使用 dnf 或 apt-get 命令直接安装各种插件。
支持的 PHP 插件:php-pecl-mongodb2,php-pecl-grpc,php-pecl-zip,php-pecl-yac,php-pecl-protobuf,php-pecl-yaml 等。更多详情见此处。
系统需求
硬盘空间: 5 GiB
内存空间: 512 MiB
连接互联网
使用 root 用户
支持软件列表
Caddy 2
MariaDB 10.11, 11.4, 11.8
PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5
支持系统架构
x86_64 (amd64)
aarch64 (arm64)
适用系统
Enterprise Linux 8 (RHEL 8, Rocky Linux 8, AlmaLinux 8, Oracle Linux 8)
Enterprise Linux 9 (CentOS Stream 9, RHEL 9, Rocky Linux 9, AlmaLinux 9, Oracle Linux 9)
Enterprise Linux 10 (CentOS Stream 10, RHEL 10, Rocky Linux 10, AlmaLinux 10, Oracle Linux 10)
Debian 11
Debian 12
Debian 13
Ubuntu 20.04
Ubuntu 22.04
Ubuntu 24.04
如何安装
在 Enterprise Linux 8 / 9 / 10 系统
dnf -y install wget git
git clone https://github.com/teddysun/lcmp.git
cd lcmp
chmod 755 *.sh
./lcmp.sh 2>&1 | tee lcmp.log
在 Debian 11 ~ 13 / Ubuntu 20.04 ~ 24.04 系统
apt-get -y install wget git
git clone https://github.com/teddysun/lcmp.git
cd lcmp
chmod 755 *.sh
./lcmp.sh 2>&1 | tee lcmp.log
更多用法,请参考链接:
https://github.com/teddysun/lcmp





