![](https://csdnimg.cn/release/download_crawler_static/89072665/bg6.jpg)
3)如果处理需要和后台数据库沟通,那么由php程序去完成
4)Php程序将处理完后的结果再返回给Apache,由Apache返回给客户端
任务解决方案
一、一键部署LAMP环境
1、环境准备
㈠ 关闭防火墙和selinux
㈡ 配置本地软件仓库
2、一键构建LAMP环境
㈠ 安装Apache(httpd)软件
说明:RedHat8默认自带httpd-2.4.37版本
[root@rhel8 ~]# systemctl stop firewalld.service
[root@rhel8 ~]# systemctl disable firewalld.service
[root@rhel8 ~]# systemctl list-unit-files |grep firewalld
firewalld.service disabled
[root@rhel8 ~]# setenforce 0
[root@rhel8 ~]# getenforce
Permissive
[root@rhel8 ~]# vim /etc/selinux/config
...
SELINUX=disabled
....
[root@rhel8 ~]# mount -o ro /dev/sr0 /mnt
[root@rhel8 ~]# echo "mount -o ro /dev/sr0 /mnt" >> /etc/rc.local
[root@rhel8 ~]# chmod +x /etc/rc.d/rc.local
[root@rhel8 ~]# cd /etc/yum.repos.d/
[root@rhel8 yum.repos.d]# cat local.repo
[BaseOS]
name=BaseOS yum
baseurl=file:///mnt/BaseOS/
enabled=1
gpgcheck=0
[App]
name=Appstream yum
baseurl=file:///mnt/AppStream/
enabled=1
gpgcheck=0