官网地址:http://httpd.apache.org/docs/2.4/
Download Download the latest release from http://httpd.apache.org/download.cgi
Extract $ gzip -d httpd-NN.tar.gz
$ tar xvf httpd-NN.tar
$ cd httpd-NN
Configure $ ./configure --prefix=PREFIX
./configure --prefix=/home/xiluhua/application/httpd-2.4.25/8001
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
Compile $ make
Install $ make install
Customize $ vi PREFIX/conf/httpd.conf
Test $ PREFIX/bin/apachectl -k start
解决编译apache出现的问题:configure: error: APR not found . Please read the documentation
http://xtony.blog.51cto.com/3964396/836508