【Linux】部署apache

部署前的準備:web

一、安裝aprapache

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

#tar -zxvf apr-1.4.8.tar.gzget

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

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

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

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

#makeco

#make installmv

二、安裝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

相關文章
相關標籤/搜索