本文介绍两种方法yum安装LAMP, 方法1: 通过httpd的php模块方式安装LAMP 方法2: 通过php-fpm方式安装LAMP 安装环境:CentOS Linux release 7.5.1804 方法1: 通过httpd的php模块方式安装LAMP 安装程序包: # yum -y install httpd php php-mysql mariadb-server 启动服务: # systemctl start mariadb # systemctl start httpd 方法2:…