eagleshi 发表于 2016-12-29 08:24:16

Apache 安装

1.http://labs.mop.com/apache-mirror//httpd/httpd-2.4.2.tar.bz2下载apache
2.tar -jxvf httpd-2.4.2.tar.bz2解压
3../configure –prefix=/usr/local/apache配置apache路径
4.安装一些所需插件
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.10/pcre-8.10.zip    a:解决apr not found问题>>>>>>

[*]cd  apr-1.4.5  
[*]./configure --prefix=/usr/local/apr  
[*]make && make install  
[*]
  b:解决APR-util not found问题>>>>

[*] tar -zxf apr-util-1.3.12.tar.gz  
[*]cd apr-util-1.3.12  
[*] ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config  
[*] make && make install

  c:解决pcre问题>>>>>>>>>

[*]unzip -o pcre-8.10.zip  
[*]cd pcre-8.10  
[*]./configure --prefix=/usr/local/pcre  
[*]make 
[*] --disable-shared --with-pic
[*]make&&make install
d.最后编译Apache时加上:
--with-apr=/usr/test/apr
--with-apr-util=/usr/test/apr-util/
--with-pcre=/usr/test/pcre
5.make&&make install
页: [1]
查看完整版本: Apache 安装