apache的安装

 

1. 安装apr:

wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz

wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz  

wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz

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

make && make install  

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

make && make install 

 #./configure --prefix=/usr/local/pcre

2.apache的安装

./configure --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/  --with-pcre=/usr/local/pcre --with-apxs2=/path/to/apxs --enable-so

3.apache的启动

/usr/local/apache2/bin/apachectl start

 /usr/local/apache2/bin/apachectl stop

 

 

posted on 2013-08-10 16:52  strikebone  阅读(212)  评论(0编辑  收藏  举报

导航