centos7安装lamp

安装php

curl -O https://dshvv.oss-cn-beijing.aliyuncs.com/iphp.sh && chmod 755 ./iphp.sh && ./iphp.sh  && rm -rf ./iphp.sh

安装mysql

curl -O https://dshvv.oss-cn-beijing.aliyuncs.com/imysql.sh && chmod 755 ./imysql.sh && ./imysql.sh  && rm -rf ./imysql.sh

安装apache

yum install httpd -y
原文地址:https://www.cnblogs.com/dshvv/p/11345039.html