Httpd服务入门知识-在centos 7.6编译安装httpd-2.4
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
一.APR(Apache portable Run-time libraries,Apache可移植运行库)
主要为上层的应用程序提供一个可以跨越多操作系统平台使用的底层支持接口库。在早期的Apache版本中,应用程序本身必须能够处理各种具体操作系统平台的细节,并针对不同的平台调用不同的处理函数。 随着Apache的进一步开发,Apache组织决定将这些通用的函数独立出来并发展成为一个新的项目。这样,APR的开发就从Apache中独立出来,Apache仅仅是使用 APR而已。 目前APR主要还是由Apache使用,由于APR的较好的移植性,因此一些需要进行移植的C程序也开始使用APR,开源项目比如用于服务器压力测试的Flood loader tester,该项目不仅仅适用于Apache,http://httpd.apache.org/test/flood httpd 2.4版本依赖于更高版本的apr(apr全称 apache portable runtime,运行时移植)和arp-util。apr是一个移植工具,是一个让Apache可以跨平台的工具,它是一个底层库。有了这个apr以后,你在windows装上apr,在Linux也安装上apr,那么我们的Apache的代码既可以在windows上跑又可以在Linux上跑。对于httpd2.4它需要apr-1.4以上版本。
apr和arp-util软件包的下载地址:http://mirror.bit.edu.cn/apache/apr/
httpd软件包的下载地址:http://mirror.bit.edu.cn/apache/httpd/
[root@node107.yizhengjie.org.cn ~]# rpm -qi apr Name : apr Version : 1.4.8 Release : 5.el7 Architecture: x86_64 Install Date: Mon 09 Dec 2019 10:15:45 PM CST Group : System Environment/Libraries Size : 226790 License : ASL 2.0 and BSD with advertising and ISC and BSD Signature : RSA/SHA256, Fri 23 Aug 2019 05:20:27 AM CST, Key ID 24c6a8a7f4a80eb5 Source RPM : apr-1.4.8-5.el7.src.rpm Build Date : Thu 08 Aug 2019 08:04:16 PM CST Build Host : x86-01.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://apr.apache.org/ Summary : Apache Portable Runtime library Description : The mission of the Apache Portable Runtime (APR) is to provide a free library of C data structures and routines, forming a system portability layer to as many operating systems as possible, including Unices, MS Win32, BeOS and OS/2. [root@node107.yizhengjie.org.cn ~]#