准备工作:
(1)配置好CentOS yum源
(2)阅读官方安装文档: https://httpd.apache.org/docs/2.4/install.html
有如下英文关于需要安装APR,APR-Util,PCRE的说明:
The following requirements exist for building Apache httpd:
APR and APR-Util
Make sure you have APR and APR-Util already installed on your system. If you don't, or prefer to not use the system-provided versions, download the latest versions of both APR and APR-Util from Apache APR, unpack them into /httpd_source_tree_root/srclib/apr
and /httpd_source_tree_root/srclib/apr-util
(be sure the directory names do not have version numbers; for example, the APR distribution must be under /httpd_source_tree_root/srclib/apr/) and use ./c