日期:2014-05-16  浏览次数:20907 次

ubuntu 安装 apache 2.4.7

os:ubuntu 12.04. server

1.下载 apache http server 2.4.7(httpd):

http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.7.tar.gz

2.下载 APR 1.5.0

http://mirrors.cnnic.cn/apache//apr/apr-1.5.0.tar.gz

3.下载 APR-util 1.5.3

http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.3.tar.gz

4.解压

tar -zxf httpd-2.4.7.tar.gz

tar -zxf apr-1.5.0.tar.gz

tar -zxf apr-util-1.5.3.tar.gz

mv apr-1.5.0 httpd-2.4.7/srclib/apr

mv apr-util-1.5.3 httpd-2.4.7/srclib/apr-util

5.编译并安装

./configure --prefix=/usr/local/apache-2.4.7 --enable-dav --enable-so --enable-maintainer-mode --enable-rewrite --enable-deflate=shared --enable-ssl=shared --enable-expires=shared --enable-headers=shared --enable-static-support --with-included-apr --with-mpm=worker --enable-cache --enable-file-cache

make

sudo make install

6.开机启动等设置可以使用 supervisord 来控制

?

转载自?http://www.cnblogs.com/lwysoft/archive/2012/11/25/2787732.html

?