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
本文详细介绍了如何在Ubuntu 12.04服务器上部署Apache HTTP服务器,包括下载并安装Apache、APR和APR-util等组件,并提供了开机启动和控制的建议。
427

被折叠的 条评论
为什么被折叠?



