1,准备
系统:centos 7
依赖包:
apr-1.6.5.tar.gz
apr-util-1.6.5.tar.gz
httpd-2.4.57.tar.gz
gcc pcre-devel expat-devel libxml2-devel openssl-devel
2,下载安装包
wget https://dlcdn.apache.org//apr/apr-util-1.6.5.tar.gz
wget https://dlcdn.apache.org//apr/apr-1.6.5.tar.gz
wget https://dlcdn.apache.org/httpd/httpd-2.4.57.tar.gz
wget https://dlcdn.apache.org//apr/apr-util-1.6.5.tar.gz
wget https://dlcdn.apache.org//apr/apr-1.6.5.tar.gz
wget https://dlcdn.apache.org/httpd/httpd-2.4.57.tar.gz
3,编译安装
yum update
yum install gcc pcre-devel openssl-devel expat-devel libxml2-devel -y
tar zxf apr-1.6.5.tar.gz
cd apr-1.6.5
./configure --prefix=/usr/local/apr (--prefix指定apr安装的目录)
make
make install
tar
CentOS 7下Apache 2.4.x的编译安装与升级指南

本文档详细介绍了如何在CentOS 7系统上编译安装Apache 2.4.x版本,包括准备依赖包、下载安装源码、编译安装过程以及将Apache的bin文件添加到环境变量的方法。此外,还提供了升级Apache的步骤,只需执行准备、下载和编译安装的步骤。
最低0.47元/天 解锁文章
828

被折叠的 条评论
为什么被折叠?



