centos6.9编译安装httpd2.4.27

下载httpd,apr,apr-util,pcre包,各自解压
推荐编译安装apr,apr-util,pcre编译subversion需要用到
./configure –prefix=/usr/local/httpd –with-pcre=/usr/local/pcre/ –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util

[
也可以用源码包apr,apr-util放到httpd解压后的srclib目录中,(注意名字一定要是这两个,不能带版本号)
./configure –prefix=/usr/local/httpd –with-pcre=/usr/local/pcre/ –with-include-apr
]
make
make install
如果出现类似错误
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
yum install expat-devel
(apt install libexpat1-dev)

你可能感兴趣的:(读书笔记)