环境
虚拟机:VMware 16.2.4
OS:centos 7.6
远程连接工具:Xshell 7
Apache版本:httpd-2.4.37
php版本:php-7.2.17
@[toc]一、Apache安装准备
1.将源码包和Apache依赖包上传到指定目录
2.安装依赖包
1|tar xf apr-1.5.2.tar.bz2
2|cd apr-1.5.2
3|./configure && make -j2 && make install
4|tar xf apr-util-1.5.4.tar.bz2
5|cd apr-util-1.5.4/
6|./configure --with-apr=/usr/local/apr/bin/apr-1-config
7|make -j2 && make install
3.安装依赖
yum -y install pcre-devel openssl-devel
@[toc]二、Apache安装配置
1.解压源码包并进入解压后生成的目录
2.编写配置脚本