【Linux】部署apache

部署前的准备:

1、安装apr

#wget http://mirror.bit.edu.cn/apache/apr/apr-1.4.8.tar.gz

#tar -zxvf apr-1.4.8.tar.gz

#mkdir -p /usr/local/web/apr

#mv apr-1.4.8 /usr/local/src/

#cd /usr/local/src/apr-1.4.8

#./configure --prefix=/usr/local/web/apr/ 

#make

#make install

2、安装apr-util

#wget http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.2.tar.gz

#tar -zxvf apr-util-1.5.2.tar.gz

#mkdir -p /usr/local/web/apr-util

#mv apr-util-1.5.2 /usr/local/src/

#cd /usr/local/src/apr-util-1.5.2

#./configure --prefix=/usr/local/web/apr-util/ --with-apr=/usr/local/web/apr/bin/apr-1-config

#make

#make install

 

安装apache

#wget http://apache.etoak.com//httpd/httpd-2.4.6.tar.gz

#tar -zxvf httpd-2.4.6.tar.gz

#mkdir -p /usr/local/web/apache

#mv httpd-2.4.6 /usr/local/src/

#cd /usr/local/src/httpd-2.4.6

#./configure --prefix=/usr/local/web/apache/ --with-apr=/usr/local/web/apr/bin/apr-1-config --with-apr-util=/usr/local/web/apr-util/bin/apu-1-config

#make 

#make install

 

posted @ 2013-08-06 13:47  小猴子滴乐乐  阅读(228)  评论(0编辑  收藏  举报