linux 安装apache(apr & apr-unit)

1.解压apache源码

# tar xvjf httpd-2.2.21.tar.gz
# cd httpd-2.2.21

2.安装apr

# cd srclib/apr
# ./configure --prefix=/usr/local/apr
# make
# make install

3.安装apr-util

# cd ../apr-util/
# ./configure --prefix=/usr/local/apr-util 
    --with-apr=/usr/local/apr
# make
# make install

4.安装apache

# cd ../../
#./configure --prefix=/usr/local/apache2 --enable-modules=so --enable-mods-shared=all
  --enable-proxy --enable-proxy-connect --enable-proxy-ftp 
--enable-proxy-http --enable-proxy-ajp --enable-proxy-balancer
--enable-rewrite
                       --enable-status
                       --with-apr=/usr/local/apr 
                       --with-apr-util=/usr/local/apr-util/
# make
# make install

也可以不安装apr和apr-unit参见:

http://evan-shen.iteye.com/blog/1336141

相关推荐