centos 7.4 最小化安装版本,采用阿里云的源,安装前yum update更新过
最新版Apache HTTP Server下载地址
http://httpd.apache.org/download.cgiApache官网的安装说明
http://httpd.apache.org/docs/2.4/install.html#install除了Apache httpd,还要下载两个依赖环境,
下载地址:http://apr.apache.org/download.cgi把下载好的两个APR 和 APR-Util解压后,分别重命名去掉版本编号,就单单apr文件夹和apr-util文件夹就好了,然后把这两个文件夹移动到httpd根目录下的srclib文件夹里面,
配置apache
./configure遇到错误提示:
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决办法:
sudo yum -y install pcre-develsudo make时间有点长的噢,听会歌吧。遇到错误提示:
fatal error: expat.h: No such file or directory
解决办法:yum install expat-devel遇到错误提示如下,说明缺少了xml相关的库
/root/httpd-2.4.29/srclib/apr-util/.libs/li

本文档介绍了在CentOS 7.4最小化安装环境下,如何从源代码编译并安装Apache HTTP Server 2.4。首先,通过yum update更新系统,然后下载Apache HTTPD及依赖APR和APR-Util。将依赖解压并移动到相应目录,接着进行配置、解决编译过程中遇到的问题,如缺少XML库。最后完成编译和安装。
最低0.47元/天 解锁文章
332

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



