标签:httpd apache linux centos apr
假设的:
apr安装在: /home/manage/lib/apr
apr-util安装在 /home/manage/lib/apr-suite/apr-util
apr-iconv安装在/home/manage/lib/apr-suite/apr-iconv
apache http server(httpd)安装在 /home/manage/lib/httpd
1, 下载各个应用
wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.12.tar.gz
wget http://archive.apache.org/dist/apr/apr-iconv-1.2.1.tar.gz
wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz
wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
2,解压各个压缩包,示例:
tar -zxvf apr-1.5.2.tar.gz
3,设置安装路径并安装(各个命令在执行前,需要进入到安装程序解压后的目录中再执行./configure)
./configure --prefix=/home/manage/lib/apr && make && make install
./configure --prefix=/home/manage/lib/apr-suite/apr-util --with-apr=/home/manage/lib/apr/bin/apr-1-config && make && make install
./configure --prefix=/home/manage/lib/apr-suite/apr-iconv --with-apr=/home/manage/lib/apr && make && make install
./configure --prefix=/home/manage/lib/httpd --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=/home/manage/lib/apr
--with-apr-util=/home/manage/lib/apr-suite/apr-util
标签:httpd apache linux centos apr
原文地址:http://blog.csdn.net/lijunwyf/article/details/46383421