实验
安装apache
tar xf apr-1.6.2.tar.gz
tar xf apr-util-1.6.0.tar.gz
tar xf httpd-2.4.29.tar.gz
mv apr-1.6.2 httpd-2.4.29/srclib/apr
mv apr-util-1.6.0 httpd-2.4.29/srclib/apr-util
yum -y install \
gcc \
gcc-c++ \
make \
pcre-devel \
expat-devel \
zlib-devel \
perl
cd httpd-2.4.29
./configure \
--prefix=/usr/local/httpd \
--enable-deflate \
--enable-expires \
--enable-so \
--enable-rewrite \
--enable-charset-lite \
--enable-cgi
make && make install
1、设置一个软链接
2、修改配置文件
底行插入
执行文件
cd /usr/local/httpd/bin/
./apachectl start
抓包检验结果,延迟缓存50