系统是centos,源码安装apache服务器
1.先下载好apache源码安装包,网址:http://httpd.apache.org/download.cgi
2.选择相应版本,根据文档进行安装,网址:http://httpd.apache.org/docs/
3.其中apache2.4安装前需要,安装好APR和APR-Util,PCRE,Perl等
4.先安装APR和APR-Util,下载好两者的源码包,网址:http://apr.apache.org/
解压,进入文件夹,安装APR,./configure --prefix='安装位置' make&make install,如果显示没有configure文件,就需要先执行./buildconf
类似的安装APR-Util,./configure --prefix='安装位置' --with-apr='apr的安装位置' make&make install 具体过程见网址:http://apr.apache.org/compiling_unix.html
5.其他PCRE,Perl安装好
6.安装Apache,进到文件夹,./configure --prefix='安装位置' --with-apr='apr的安装位置' make&make install 就安装好了
其中要注意的是,文件是从windows上传到linux上的,最好只是上传的压缩包,然后在linux上解压,如果在windows解压好的文件上传上去,有可能会出现一些不明问题
其中出了一些问题,在这个网址找到答案:http://www.mamicode.com/info-detail-1950100.html
https://www.cnblogs.com/zyos/p/7663717.html