Apache HTTP Server(HTTPD)2.4.1,这个版本是新一代的2.4分支的首个正式版本。

Apache HTTP Server项目团队称,这是最新的、也是最好的一个版本,添加了许多新的模块,扩展了现有的功能,增强了灵活性。众多的性能及功能改进,使得该版本更适合日益流行的云环境。

该版本的主要改进包括:

  • 改善了服务器性能(减少了资源利用,增强了并发能力)
  • 支持异步I/O
  • 动态反向代理配置
  • 比纯事件驱动的Web服务器的性能更好
  • 更精准的超时和资源利用限制能力
  • 增强了微调缓存支持,专为高流量服务器和代理服务器打造

Apache2.4.1编译安装报错解决

环境介绍:

操作系统:Centos 5.5_64bit
Apache版本:2.4.1`

关于编译apache2.4.1报错处理:

报错一:

checking for APR... no

configure: error: APR not found.  Please read the documentation.

查看是否安装apr软件包

[root@study httpd-2.4.1]# rpm -qa |grep apr

apr-1.2.7-11.el5_6.5

apr-util-1.2.7-11.el5_5.2

apr-util-1.2.7-11.el5_5.2

apr-1.2.7-11.el5_6.5

#查看缺少apr开发包,如下命令即可安装:

[root@study httpd-2.4.1]# yum install apr apr-util apr-devel  apr-util-devel  -y

 

 

报错二:

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

解决方法:

[root@study httpd-2.4.1]# yum install pcre pcre-devel  -y

 

报错三:

checking for APR version 1.3.0 or later... no

configure: error: APR version 1.3.0 or later is required

 

此报错说明第一个报错问题还没有彻底解决,yum安装的apr版本是1.2.7,依赖关系请求1.3.0或以后的版本。

解决方法:

卸载yum安装的apr包:

[root@study httpd-2.4.1]# yum remove apr apr-util y

到官方下载最新的apr软件包编译安装即可:

[root@study tools]# wget http://apache.etoak.com//apr/apr-1.4.6.tar.gz

[root@study tools]# wget http://apache.etoak.com//apr/apr-util-1.4.1.tar.gz

[root@study tools]# tar zxvf apr-1.4.6.tar.gz

[root@study tools]# tar zxvf apr-util-1.4.1.tar.gz

[root@study tools]# cd apr-1.4.6

[root@study apr-1.4.6]#  ./configure  && make && make install

[root@study apr-1.4.6]# cd ../apr-util-1.4.1

[root@study apr-util-1.4.1]# ./configure  --with-apr=/usr/local/apr/  && make && make install

 以上安装的aprpcre都是Apache所需的依赖软件包,如上方法安装就可以顺利编译安装Apache2.4.1。