直接介绍如何做:
第一步:准备Apache软件
我们可以下载源代码,也可以下载已经编译好的二进制文件。我下面使用源代码编译出Apache
下载源程序的网站:http://mirror.bit.edu.cn/apache/httpd/
也可以使用wget获得源程序的压缩包:
[]$wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.3.tar.bz2
下载后解压:
[]$tar -xjf httpd-2.4.3.tar.bz2
第二步:编译安装
切换到解压目录;
[]$cd httpd-2.4.3/
配置安装目录;
[]$./configure --prefix=/home/user/soft/apache
执行配置之后,我遇到如下错误:
checking for APR... no
configure: error: APR not found. Please read the documentation.
错误的