[root]# yum install -y httpd httpd-tools #安装
[root]# systemctl start httpd #启动
[root]#systemctl enable httpd #设置随系统启动
[root]# yum install -y mariadb-server mariadb #安装
[root]# systemctl start mariadb.service #启动
[root]# systemctl enable mariadb.service #设置随系统启动
[root]# yum install -y php #安装默认是7.2版本