{"id":52105,"date":"2024-12-03T14:35:13","date_gmt":"2024-12-03T06:35:13","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52105\/"},"modified":"2024-12-03T14:35:13","modified_gmt":"2024-12-03T06:35:13","slug":"linux-apr%e6%8c%87%e7%9a%84%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52105\/","title":{"rendered":"linux apr\u6307\u7684\u662f\u4ec0\u4e48"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>linux apr\u6307\u7684\u662f\u4ec0\u4e48<\/h1>\n<p>\u4eb2\u7231\u7684\u7f16\u7a0b\u5b66\u4e60\u7231\u597d\u8005\uff0c\u5982\u679c\u4f60\u70b9\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff0c\u8bf4\u660e\u4f60\u5bf9\u300alinux apr\u6307\u7684\u662f\u4ec0\u4e48\u300b\u5f88\u611f\u5174\u8da3\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u7ed9\u5927\u5bb6\u8be6\u7ec6\u89e3\u6790\u4e00\u4e0b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u5e0c\u671b\u6240\u6709\u8ba4\u771f\u8bfb\u5b8c\u7684\u7ae5\u978b\u4eec\uff0c\u90fd\u6709\u5b9e\u8d28\u6027\u7684\u63d0\u9ad8\u3002<\/p>\n<\/p>\n<blockquote>\n<p>linux apr\u662f\u6307Apache\u53ef\u79fb\u690d\u8fd0\u884c\u5e93\uff0c\u5176\u82f1\u6587\u5168\u79f0\u662f\u201cApache portable Run-time libraries\u201d\uff1b\u5176\u4e3b\u8981\u4e3a\u4e0a\u5c42\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e00\u4e2a\u53ef\u4ee5\u8de8\u8d8a\u591a\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u4f7f\u7528\u7684\u5e95\u5c42\u652f\u6301\u63a5\u53e3\u5e93\u3002<\/p>\n<\/blockquote>\n<p><strong>apache apr\u4ecb\u7ecd<\/strong><\/p>\n<p>APR(Apache portable Run-time libraries\uff0cApache\u53ef\u79fb\u690d\u8fd0\u884c\u5e93)\u7684\u76ee\u7684\u5982\u5176\u540d\u79f0\u4e00\u6837\uff0c\u4e3b\u8981\u4e3a\u4e0a\u5c42\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e00\u4e2a\u53ef\u4ee5\u8de8\u8d8a\u591a\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u4f7f\u7528\u7684\u5e95\u5c42\u652f\u6301\u63a5\u53e3\u5e93\u3002\u5728\u65e9\u671f \u7684Apache\u7248\u672c\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u5fc5\u987b\u80fd\u591f\u5904\u7406\u5404\u79cd\u5177\u4f53\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u7684\u7ec6\u8282\uff0c\u5e76\u9488\u5bf9\u4e0d\u540c\u7684\u5e73\u53f0\u8c03\u7528\u4e0d\u540c\u7684\u5904\u7406\u51fd\u6570\u3002<\/p>\n<p>\u968f\u7740Apache\u7684\u8fdb\u4e00\u6b65\u5f00 \u53d1\uff0cApache\u7ec4\u7ec7\u51b3\u5b9a\u5c06\u8fd9\u4e9b\u901a\u7528\u7684\u51fd\u6570\u72ec\u7acb\u51fa\u6765\u5e76\u53d1\u5c55\u6210\u4e3a\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u8fd9\u6837\uff0cAPR\u7684\u5f00\u53d1\u5c31\u4eceApache\u4e2d\u72ec\u7acb\u51fa\u6765\uff0cApache\u4ec5\u4ec5\u662f\u4f7f\u7528 APR\u800c\u5df2\u3002\u76ee\u524dAPR\u4e3b\u8981\u8fd8\u662f\u7531Apache\u4f7f\u7528\uff0c\u4e0d\u8fc7\u7531\u4e8eAPR\u7684\u8f83\u597d\u7684\u79fb\u690d\u6027\uff0c\u56e0\u6b64\u4e00\u4e9b\u9700\u8981\u8fdb\u884c\u79fb\u690d\u7684C\u7a0b\u5e8f\u4e5f\u5f00\u59cb\u4f7f\u7528APR\uff0c\u5f00\u6e90\u9879\u76ee\u6bd4\u5982 Flood loader(http:\/\/httpd.apache.org\/test\/flood\/\uff0c\u8be5\u9879\u76ee\u7528\u4e8e\u670d\u52a1\u5668\u538b\u529b\u6d4b\u8bd5\uff0c\u4e0d\u4ec5\u4ec5\u9002\u7528\u4e8eApache)\u3001FreeSwitch(www.freeswitch.org)\uff0cJXTA-C(http:\/\/jxta-c.jxta.org,C\u7248\u672c\u7684JXTA\u70b9\u5bf9\u70b9\u5e73\u53f0\u5b9e\u73b0)\uff1b\u5546\u4e1a\u7684\u9879\u76ee\u5219\u5305\u62ecBlogline(http:\/\/www.bloglines.com\/\uff0ccovalent(http:\/\/www.covalent.net)\u7b49\u7b49\u3002<\/p>\n<p>APR\u4f7f\u5f97\u5e73\u53f0\u7ec6\u8282\u7684\u5904\u7406\u8fdb\u884c\u4e0b\u79fb\u3002\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u800c\u8a00\uff0c\u5b83\u4eec\u6839\u672c\u5c31\u4e0d\u9700\u8981\u8003\u8651\u5177\u4f53\u7684\u5e73\u53f0\uff0c\u4e0d\u7ba1\u662fUnix\u3001Linux\u8fd8\u662fWindow\uff0c\u5e94\u7528\u7a0b\u5e8f\u6267\u884c\u7684\u63a5\u53e3\u57fa\u672c\u90fd\u662f\u7edf\u4e00\u4e00\u81f4\u7684\u3002\u56e0\u6b64\u5bf9\u4e8eAPR\u800c\u8a00\uff0c\u53ef\u79fb\u690d\u6027\u548c\u7edf\u4e00\u7684\u4e0a\u5c42\u63a5\u53e3\u662f\u5176\u8003\u8651\u7684\u4e00\u4e2a\u91cd\u70b9\u3002\u800cAPR\u6700\u65e9\u7684\u76ee\u7684\u5e76\u4e0d\u662f\u5982\u6b64\uff0c\u5b83\u6700\u65e9\u53ea\u662f\u5e0c\u671b\u5c06Apache\u4e2d\u7528\u5230\u7684\u6240\u6709\u4ee3\u7801\u5408\u5e76\u4e3a\u4e00\u4e2a\u901a\u7528\u7684\u4ee3\u7801\u5e93\uff0c\u7136\u800c\u8fd9\u4e0d\u662f\u4e00\u4e2a\u6b63\u786e\u7684\u7b56\u7565\uff0c\u56e0\u6b64\u540e\u6765APR\u6539\u53d8\u4e86\u5176\u76ee\u6807\u3002\u6709\u7684\u65f6\u5019\u4f7f\u7528\u516c\u5171\u4ee3\u7801\u5e76\u4e0d\u662f\u4e00\u4ef6\u597d\u4e8b\uff0c\u6bd4\u5982\u5982\u4f55\u5c06\u4e00\u4e2a\u8bf7\u6c42\u6620\u5c04\u5230\u7ebf\u7a0b\u6216\u8005\u8fdb\u7a0b\u662f\u5e73\u53f0\u76f8\u5173\u7684\uff0c\u56e0\u6b64\u4ec5\u4ec5\u4e00\u4e2a\u516c\u5171\u7684\u4ee3\u7801\u5e93\u5e76\u4e0d\u80fd\u5b8c\u6210\u8fd9\u79cd\u533a\u5206\u3002APR\u7684\u76ee\u6807\u5219\u662f\u5e0c\u671b\u5b89\u5168\u5408\u5e76\u6240\u6709\u7684\u80fd\u591f\u5408\u5e76\u7684\u4ee3\u7801\u800c\u4e0d\u9700\u8981\u727a\u7272\u6027\u80fd\u3002<\/p>\n<p>APR\u7684\u6700\u65e9\u7684\u4e00\u4e2a\u76ee\u6807\u5c31\u662f\u4e3a\u6240\u6709\u7684\u5e73\u53f0(\u4e0d\u662f\u90e8\u5206)\u63d0\u4f9b\u4e00\u4e2a\u516c\u5171\u7684\u7edf\u4e00\u64cd\u4f5c\u51fd\u6570\u63a5\u53e3\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u4e86\u4e0d\u8d77\u7684\u76ee\u7684\uff0c\u5f53\u7136\u4e5f\u662f\u4e0d\u73b0\u5b9e\u7684\u4e00\u4e2a\u76ee\u6807\u3002\u6211\u4eec\u4e0d\u53ef\u80fd\u652f\u6301\u6240\u6709\u5e73\u53f0\u7684\u6240\u6709\u7279\u5f81\uff0c\u56e0\u6b64APR\u76ee\u524d\u53ea\u80fd\u4e3a\u5927\u591a\u6570\u5e73\u53f0\u63d0\u4f9b\u6240\u6709\u7684APR\u7279\u6027\u652f\u6301\uff0c\u5305\u62ecWin32\u3001OS\/2\u3001BeOS\u3001Darwin\u3001Linux\u7b49\u7b49\u3002\u4e3a\u4e86\u80fd\u591f\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u6807\uff0cAPR\u5f00\u53d1\u8005\u5fc5\u987b\u4e3a\u90a3\u4e9b\u4e0d\u80fd\u8fd0\u884c\u4e8e\u6240\u6709\u5e73\u53f0\u7684\u7279\u6027\u521b\u5efa\u4e86\u4e00\u7cfb\u5217\u7684\u7279\u5f81\u5b8f(FEATURE MACROS)\u4ee5\u5728\u5404\u4e2a\u5e73\u53f0\u4e4b\u95f4\u533a\u5206\u8fd9\u4e9b\u7279\u5f81\u3002\u8fd9\u4e9b\u7279\u5f81\u5b8f\u5b9a\u4e49\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u7528APR_HAS_FEATURE\u53c2\u6570\u8bbe\u7f6e\uff1a<\/p>\n<p>\u5982\u679c\u67d0\u4e2a\u5e73\u53f0\u5177\u6709\u8fd9\u4e2a\u7279\u6027\uff0c\u5219\u8be5\u5b8f\u5fc5\u987b\u8bbe\u7f6e\u4e3atrue\uff0c\u6bd4\u5982Linux\u548cwindow\u90fd\u5177\u6709\u5185\u5b58\u6620\u5c04\u6587\u4ef6\uff0c\u540c\u65f6APR\u63d0\u4f9b\u4e86\u5185\u5b58\u6620\u5c04\u6587\u4ef6\u7684\u64cd\u4f5c\u63a5\u53e3\uff0c\u56e0\u6b64\u5728\u8fd9\u4e24\u4e2a\u5e73\u53f0\u4e0a\uff0cAPR_HAS_MMAP\u5b8f\u5fc5\u987b\u8bbe\u7f6e\uff0c\u540c\u65f6ap_mmap_*\u51fd\u6570\u5e94\u8be5\u5c06\u78c1\u76d8\u6587\u4ef6\u6620\u5c04\u4e3a\u5185\u5b58\u5e76\u8fd4\u56de\u9002\u5f53\u7684\u72b6\u6001\u7801\u3002\u5982\u679c\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e0d\u652f\u6301\u5185\u5b58\u6620\u5c04\uff0c\u90a3\u4e48APR_HAS_MMAP\u5fc5\u987b\u8bbe\u7f6e\u4e3a0\uff0c\u800c\u4e14\u6240\u6709\u7684ap_mmap_*\u51fd\u6570\u4e5f\u53ef\u4ee5\u4e0d\u9700\u8981\u5b9a\u4e49\u3002\u7b2c\u4e8c\u6b65\u5c31\u662f\u5bf9\u4e8e\u90a3\u4e9b\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u4e86\u4e0d\u652f\u6301\u7684\u51fd\u6570\u5fc5\u987b\u63d0\u51fa\u8b66\u544a\u3002<\/p>\n<p>\u76ee\u524dAPR\u4e2d\u652f\u6301\u7684\u57fa\u672c\u7c7b\u578b\u5305\u62ec\u4e0b\u9762\u51e0\u79cd\uff1a<\/p>\n<p>\u88683-1 APR\u4e2d\u652f\u6301\u7684\u57fa\u672c\u7c7b\u578b<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td width=\"120\">\n<p>\u7c7b\u578b\u540d\u79f0<\/p>\n<\/td>\n<td width=\"204\">\n<p>\u6587\u4ef6\u5939\u540d\u79f0<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u63cf\u8ff0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>atomic<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/atomic<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u539f\u5b50\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>dso<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/dso<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u52a8\u6001\u52a0\u8f7d\u5171\u4eab\u5e93<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>file io<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/file_io<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u6587\u4ef6IO\u5904\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>mmap<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/mmap<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u5185\u5b58\u6620\u5c04\u6587\u4ef6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>locks<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/locks<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u4e92\u65a5\u9501<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>memory<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/memory<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u5185\u5b58\u6c60\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>network_io<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/network_io<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u7f51\u7edcIO\u5904\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>poll<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/poll<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u8f6e\u8be2IO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>table<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/tables<\/p>\n<\/td>\n<td width=\"271\">\n<p>Apache\u6570\u7ec4(\u5806\u6808)\u548c\u8868\u683c\u4ee5\u53ca\u54c8\u5e0c\u8868<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>process<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/threadproc<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u8fdb\u7a0b\u548c\u7ebf\u7a0b\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>user<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/user<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u7528\u6237\u548c\u7528\u6237\u7ec4\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>time<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/time<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u65f6\u95f4\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>string<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/strings<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u5b57\u7b26\u4e32\u64cd\u4f5c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>password<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/passwd<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u7ec8\u7aef\u5bc6\u7801\u5904\u7406<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>misc<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/misc<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u5927\u6742\u70e9\uff0c\u4e0d\u5c5e\u4e8e\u5176\u4f59\u7c7b\u7684\u4efb\u4f55apr\u7c7b\u578b\u90fd\u53ef\u4ee5\u653e\u5728\u91cc\u9762<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>shmem<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/shmem<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u5171\u4eab\u5185\u5b58<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td width=\"120\">\n<p>random<\/p>\n<\/td>\n<td width=\"204\">\n<p>\/apr\/random<\/p>\n<\/td>\n<td width=\"271\">\n<p>\u968f\u673a\u6570\u751f\u6210\u5e93<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>apache \u7684apr\u9879\u76ee\u76ee\u524d\u6709\u4e09\u90e8\u5206\u7ec4\u6210\uff0c\u5206\u522b\u662fapr\u3001apr-util\u3001apr-iconv<br \/>apr\u4e2d\u5305\u542b\u4e86\u4e00\u4e9b\u901a\u7528\u7684\u5f00\u53d1\u7ec4\u4ef6\uff0c\u5305\u62ecmmap\uff0cDSO\u7b49\u7b49<br \/>apr-util\u8be5\u76ee\u5f55\u4e2d\u4e5f\u662f\u5305\u542b\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u5f00\u53d1\u7ec4\u4ef6\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u4e0eapr\u76ee\u5f55\u4e0b\u7684\u76f8\u6bd4\uff0c\u5b83\u4eec\u4e0eapache\u7684\u5173\u7cfb\u66f4\u52a0\u5bc6\u5207\u4e00\u4e9b\u3002\u6bd4\u5982\u5b58\u50a8\u6bb5\u548c\u5b58\u50a8\u6bb5\u7ec4\uff0c\u52a0\u5bc6\u7b49\u7b49\u3002<br \/>apr-iconv\u5305\u4e2d\u7684\u6587\u4ef6\u4e3b\u8981\u7528\u4e8e\u5b9e\u73b0iconv\u7f16\u7801\u3002\u76ee\u524d\u7684\u5927\u90e8\u5206\u7f16\u7801\u8f6c\u6362\u8fc7\u7a0b\u90fd\u662f\u4e0e\u672c\u5730\u7f16\u7801\u76f8\u5173\u7684\u3002\u5728\u8fdb\u884c\u8f6c\u6362\u4e4b\u524d\u5fc5\u987b\u80fd\u591f\u6b63\u786e\u5730\u8bbe\u7f6e\u672c\u5730\u7f16\u7801\u3002\u56e0\u6b64\u5047\u5982\u4e24\u4e2a\u975e\u672c\u5730\u7f16\u7801A\u548cB\u9700\u8981\u8f6c\u6362\uff0c\u5219\u8f6c\u6362\u8fc7\u7a0b\u5927\u81f4\u4e3aA-&gt;Local\u4ee5\u53caLocal-&gt;B\u6216\u8005B-&gt;Local\u4ee5\u53caLocal-&gt;A\u3002<\/p>\n<p>\u4ee5\u4e0a\u4e09\u4e2a\u5305\u6700\u65b0\u4e0b\u8f7d\u5730\u5740\u4e3a\uff1a<\/p>\n<pre>http:\/\/labs.mop.com\/apache-mirror\/\/apr\/apr-1.4.6.tar.gz\r\nhttp:\/\/labs.mop.com\/apache-mirror\/\/apr\/apr-util-1.4.1.tar.gz\r\nhttp:\/\/labs.mop.com\/apache-mirror\/\/apr\/apr-iconv-1.2.1.tar.gz\r\n<\/pre>\n<p>\u6587\u4e2d\u5173\u4e8eLinux,apr\u7684\u77e5\u8bc6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u5bf9\u4f60\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01\u82e5\u662f\u53d7\u76ca\u532a\u6d45\uff0c\u90a3\u5c31\u52a8\u52a8\u9f20\u6807\u6536\u85cf\u8fd9\u7bc7\u300alinux apr\u6307\u7684\u662f\u4ec0\u4e48\u300b\u6587\u7ae0\u5427\uff0c\u4e5f\u53ef\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u4e86\u89e3\u76f8\u5173\u6280\u672f\u6587\u7ae0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux apr\u6307\u7684\u662f\u4ec0\u4e48 \u4eb2\u7231\u7684\u7f16\u7a0b\u5b66\u4e60\u7231\u597d\u8005\uff0c\u5982\u679c\u4f60\u70b9\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0\uff0c\u8bf4\u660e\u4f60\u5bf9\u300alinux apr\u6307\u7684\u662f\u4ec0\u4e48\u300b\u5f88\u611f\u5174\u8da3\u3002\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u7ed9\u5927\u5bb6\u8be6\u7ec6\u89e3\u6790\u4e00\u4e0b\uff0c\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u5e0c\u671b\u6240\u6709\u8ba4\u771f\u8bfb\u5b8c\u7684\u7ae5\u978b\u4eec\uff0c\u90fd\u6709\u5b9e\u8d28\u6027\u7684\u63d0\u9ad8\u3002 linux apr\u662f\u6307Apache\u53ef\u79fb\u690d\u8fd0\u884c\u5e93\uff0c\u5176\u82f1\u6587\u5168\u79f0\u662f\u201cApache portable Run-time libraries\u201d\uff1b\u5176\u4e3b\u8981\u4e3a\u4e0a\u5c42\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e00\u4e2a\u53ef\u4ee5\u8de8\u8d8a\u591a\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u4f7f\u7528\u7684\u5e95\u5c42\u652f\u6301\u63a5\u53e3\u5e93\u3002 apache apr\u4ecb\u7ecd APR(Apache portable Run-time libraries\uff0cApache\u53ef\u79fb\u690d\u8fd0\u884c\u5e93)\u7684\u76ee\u7684\u5982\u5176\u540d\u79f0\u4e00\u6837\uff0c\u4e3b\u8981\u4e3a\u4e0a\u5c42\u7684\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e00\u4e2a\u53ef\u4ee5\u8de8\u8d8a\u591a\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u4f7f\u7528\u7684\u5e95\u5c42\u652f\u6301\u63a5\u53e3\u5e93\u3002\u5728\u65e9\u671f \u7684Apache\u7248\u672c\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u672c\u8eab\u5fc5\u987b\u80fd\u591f\u5904\u7406\u5404\u79cd\u5177\u4f53\u64cd\u4f5c\u7cfb\u7edf\u5e73\u53f0\u7684\u7ec6\u8282\uff0c\u5e76\u9488\u5bf9\u4e0d\u540c\u7684\u5e73\u53f0\u8c03\u7528\u4e0d\u540c\u7684\u5904\u7406\u51fd\u6570\u3002 \u968f\u7740Apache\u7684\u8fdb\u4e00\u6b65\u5f00 \u53d1\uff0cApache\u7ec4\u7ec7\u51b3\u5b9a\u5c06\u8fd9\u4e9b\u901a\u7528\u7684\u51fd\u6570\u72ec\u7acb\u51fa\u6765\u5e76\u53d1\u5c55\u6210\u4e3a\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u8fd9\u6837\uff0cAPR\u7684\u5f00\u53d1\u5c31\u4eceApache\u4e2d\u72ec\u7acb\u51fa\u6765\uff0cApache\u4ec5\u4ec5\u662f\u4f7f\u7528 APR\u800c\u5df2\u3002\u76ee\u524dAPR\u4e3b\u8981\u8fd8\u662f\u7531Apache\u4f7f\u7528\uff0c\u4e0d\u8fc7\u7531\u4e8eAPR\u7684\u8f83\u597d\u7684\u79fb\u690d\u6027\uff0c\u56e0\u6b64\u4e00\u4e9b\u9700\u8981\u8fdb\u884c\u79fb\u690d\u7684C\u7a0b\u5e8f\u4e5f\u5f00\u59cb\u4f7f\u7528APR\uff0c\u5f00\u6e90\u9879\u76ee\u6bd4\u5982 Flood loader(http:\/\/httpd.apache.org\/test\/flood\/\uff0c\u8be5\u9879\u76ee\u7528\u4e8e\u670d\u52a1\u5668\u538b\u529b\u6d4b\u8bd5\uff0c\u4e0d\u4ec5\u4ec5\u9002\u7528\u4e8eApache)\u3001FreeSwitch(www.freeswitch.org)\uff0cJXTA-C(http:\/\/jxta-c.jxta.org,C\u7248\u672c\u7684JXTA\u70b9\u5bf9\u70b9\u5e73\u53f0\u5b9e\u73b0)\uff1b\u5546\u4e1a\u7684\u9879\u76ee\u5219\u5305\u62ecBlogline(http:\/\/www.bloglines.com\/\uff0ccovalent(http:\/\/www.covalent.net)\u7b49\u7b49\u3002 APR\u4f7f\u5f97\u5e73\u53f0\u7ec6\u8282\u7684\u5904\u7406\u8fdb\u884c\u4e0b\u79fb\u3002\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u800c\u8a00\uff0c\u5b83\u4eec\u6839\u672c\u5c31\u4e0d\u9700\u8981\u8003\u8651\u5177\u4f53\u7684\u5e73\u53f0\uff0c\u4e0d\u7ba1\u662fUnix\u3001Linux\u8fd8\u662fWindow\uff0c\u5e94\u7528\u7a0b\u5e8f\u6267\u884c\u7684\u63a5\u53e3\u57fa\u672c\u90fd\u662f\u7edf\u4e00\u4e00\u81f4\u7684\u3002\u56e0\u6b64\u5bf9\u4e8eAPR\u800c\u8a00\uff0c\u53ef\u79fb\u690d\u6027\u548c\u7edf\u4e00\u7684\u4e0a\u5c42\u63a5\u53e3\u662f\u5176\u8003\u8651\u7684\u4e00\u4e2a\u91cd\u70b9\u3002\u800cAPR\u6700\u65e9\u7684\u76ee\u7684\u5e76\u4e0d\u662f\u5982\u6b64\uff0c\u5b83\u6700\u65e9\u53ea\u662f\u5e0c\u671b\u5c06Apache\u4e2d\u7528\u5230\u7684\u6240\u6709\u4ee3\u7801\u5408\u5e76\u4e3a\u4e00\u4e2a\u901a\u7528\u7684\u4ee3\u7801\u5e93\uff0c\u7136\u800c\u8fd9\u4e0d\u662f\u4e00\u4e2a\u6b63\u786e\u7684\u7b56\u7565\uff0c\u56e0\u6b64\u540e\u6765APR\u6539\u53d8\u4e86\u5176\u76ee\u6807\u3002\u6709\u7684\u65f6\u5019\u4f7f\u7528\u516c\u5171\u4ee3\u7801\u5e76\u4e0d\u662f\u4e00\u4ef6\u597d\u4e8b\uff0c\u6bd4\u5982\u5982\u4f55\u5c06\u4e00\u4e2a\u8bf7\u6c42\u6620\u5c04\u5230\u7ebf\u7a0b\u6216\u8005\u8fdb\u7a0b\u662f\u5e73\u53f0\u76f8\u5173\u7684\uff0c\u56e0\u6b64\u4ec5\u4ec5\u4e00\u4e2a\u516c\u5171\u7684\u4ee3\u7801\u5e93\u5e76\u4e0d\u80fd\u5b8c\u6210\u8fd9\u79cd\u533a\u5206\u3002APR\u7684\u76ee\u6807\u5219\u662f\u5e0c\u671b\u5b89\u5168\u5408\u5e76\u6240\u6709\u7684\u80fd\u591f\u5408\u5e76\u7684\u4ee3\u7801\u800c\u4e0d\u9700\u8981\u727a\u7272\u6027\u80fd\u3002 APR\u7684\u6700\u65e9\u7684\u4e00\u4e2a\u76ee\u6807\u5c31\u662f\u4e3a\u6240\u6709\u7684\u5e73\u53f0(\u4e0d\u662f\u90e8\u5206)\u63d0\u4f9b\u4e00\u4e2a\u516c\u5171\u7684\u7edf\u4e00\u64cd\u4f5c\u51fd\u6570\u63a5\u53e3\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u4e86\u4e0d\u8d77\u7684\u76ee\u7684\uff0c\u5f53\u7136\u4e5f\u662f\u4e0d\u73b0\u5b9e\u7684\u4e00\u4e2a\u76ee\u6807\u3002\u6211\u4eec\u4e0d\u53ef\u80fd\u652f\u6301\u6240\u6709\u5e73\u53f0\u7684\u6240\u6709\u7279\u5f81\uff0c\u56e0\u6b64APR\u76ee\u524d\u53ea\u80fd\u4e3a\u5927\u591a\u6570\u5e73\u53f0\u63d0\u4f9b\u6240\u6709\u7684APR\u7279\u6027\u652f\u6301\uff0c\u5305\u62ecWin32\u3001OS\/2\u3001BeOS\u3001Darwin\u3001Linux\u7b49\u7b49\u3002\u4e3a\u4e86\u80fd\u591f\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u6807\uff0cAPR\u5f00\u53d1\u8005\u5fc5\u987b\u4e3a\u90a3\u4e9b\u4e0d\u80fd\u8fd0\u884c\u4e8e\u6240\u6709\u5e73\u53f0\u7684\u7279\u6027\u521b\u5efa\u4e86\u4e00\u7cfb\u5217\u7684\u7279\u5f81\u5b8f(FEATURE MACROS)\u4ee5\u5728\u5404\u4e2a\u5e73\u53f0\u4e4b\u95f4\u533a\u5206\u8fd9\u4e9b\u7279\u5f81\u3002\u8fd9\u4e9b\u7279\u5f81\u5b8f\u5b9a\u4e49\u975e\u5e38\u7b80\u5355\uff0c\u901a\u5e38\u7528APR_HAS_FEATURE\u53c2\u6570\u8bbe\u7f6e\uff1a \u5982\u679c\u67d0\u4e2a\u5e73\u53f0\u5177\u6709\u8fd9\u4e2a\u7279\u6027\uff0c\u5219\u8be5\u5b8f\u5fc5\u987b\u8bbe\u7f6e\u4e3atrue\uff0c\u6bd4\u5982Linux\u548cwindow\u90fd\u5177\u6709\u5185\u5b58\u6620\u5c04\u6587\u4ef6\uff0c\u540c\u65f6APR\u63d0\u4f9b\u4e86\u5185\u5b58\u6620\u5c04\u6587\u4ef6\u7684\u64cd\u4f5c\u63a5\u53e3\uff0c\u56e0\u6b64\u5728\u8fd9\u4e24\u4e2a\u5e73\u53f0\u4e0a\uff0cAPR_HAS_MMAP\u5b8f\u5fc5\u987b\u8bbe\u7f6e\uff0c\u540c\u65f6ap_mmap_*\u51fd\u6570\u5e94\u8be5\u5c06\u78c1\u76d8\u6587\u4ef6\u6620\u5c04\u4e3a\u5185\u5b58\u5e76\u8fd4\u56de\u9002\u5f53\u7684\u72b6\u6001\u7801\u3002\u5982\u679c\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e0d\u652f\u6301\u5185\u5b58\u6620\u5c04\uff0c\u90a3\u4e48APR_HAS_MMAP\u5fc5\u987b\u8bbe\u7f6e\u4e3a0\uff0c\u800c\u4e14\u6240\u6709\u7684ap_mmap_*\u51fd\u6570\u4e5f\u53ef\u4ee5\u4e0d\u9700\u8981\u5b9a\u4e49\u3002\u7b2c\u4e8c\u6b65\u5c31\u662f\u5bf9\u4e8e\u90a3\u4e9b\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u4e86\u4e0d\u652f\u6301\u7684\u51fd\u6570\u5fc5\u987b\u63d0\u51fa\u8b66\u544a\u3002 \u76ee\u524dAPR\u4e2d\u652f\u6301\u7684\u57fa\u672c\u7c7b\u578b\u5305\u62ec\u4e0b\u9762\u51e0\u79cd\uff1a \u88683-1 APR\u4e2d\u652f\u6301\u7684\u57fa\u672c\u7c7b\u578b \u7c7b\u578b\u540d\u79f0 \u6587\u4ef6\u5939\u540d\u79f0 \u63cf\u8ff0 atomic \/apr\/atomic \u539f\u5b50\u64cd\u4f5c dso \/apr\/dso \u52a8\u6001\u52a0\u8f7d\u5171\u4eab\u5e93 file io \/apr\/file_io \u6587\u4ef6IO\u5904\u7406 mmap \/apr\/mmap \u5185\u5b58\u6620\u5c04\u6587\u4ef6 locks \/apr\/locks \u8fdb\u7a0b\u548c\u7ebf\u7a0b\u4e92\u65a5\u9501 memory \/apr\/memory \u5185\u5b58\u6c60\u64cd\u4f5c network_io \/apr\/network_io \u7f51\u7edcIO\u5904\u7406 poll \/apr\/poll [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52105","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52105"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52105\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}