码迷,mamicode.com
首页 > Web开发 > 详细

linux centos 安装httpd-2.4.12

时间:2015-06-06 09:10:45      阅读:171      评论:0      收藏:0      [点我收藏+]

标签: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

linux centos 安装httpd-2.4.12

标签:httpd   apache   linux   centos   apr   

原文地址:http://blog.csdn.net/lijunwyf/article/details/46383421

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!