FreeBSD8.1下安装apache2的(源码安装方式)
资源列表:
httpd-2.2.15.tar.gz http://labs.renren.com/apache-mirror/httpd/httpd-2.2.15.tar.gz
apache-tomcat-6.0.26.tar.gz
http://apache.freelamp.com/tomcat/tomcat-6/v6.0.26/bin/apache-tomcat-6.0.26.tar.gz
apr-util-1.3.9.tar.gz http://www.apache.org/dist/apr/apr-util-1.3.9.tar.gz
apr-1.4.2.tar.gz http://www.apache.org/dist/apr/apr-1.4.2.tar.gz
pcre8.10 http://www.cnblogs.com/yibinboy/admin/ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
安装Apr和Apr-util
cd ~/desktop
# tar -zxvf apr-1.4.2.tar.gz
# cd apr-1.4.2.
# ./configure --prefix=/usr/local/apr
# make
# make install
# tar -zxvf#tar -zxvf pcre8.10.tar.gz
#cd pcr8.10
# ./configure --prefix=/usr/local/pcre8.10
#make
#make install clean
安装 apache
#tar -zxvf httpd2.3.8.tar.gz
#cd httpd2.3.8
#./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --enable-proxy --enable-proxy-ajp --enable-proxy-balancer --enable-proxy-connect --enable-proxy-http --with-mpm=worker --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre8.10
#make
#make install clean
启动apache
# /usr/local/apache/bin/httpd -k start #启动apache
# /usr/local/apache/bin/httpd -k stop #停止apache
# /usr/local/apache/bin/httpd -k restart #重启apache

浙公网安备 33010602011771号