{"id":233927,"date":"2023-12-25T21:35:26","date_gmt":"2023-12-25T13:35:26","guid":{"rendered":"https:\/\/www.idc.net\/help\/233927\/"},"modified":"2023-12-25T21:35:26","modified_gmt":"2023-12-25T13:35:26","slug":"apache%e6%8c%87%e4%bb%a4%ef%bc%9amod_authn_socache-%e7%a4%be%e4%ba%a4%e7%bc%93%e5%ad%98%e8%ae%a4%e8%af%81%e6%a8%a1%e5%9d%97","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/233927\/","title":{"rendered":"Apache\u6307\u4ee4\uff1amod_authn_socache (\u793e\u4ea4\u7f13\u5b58\u8ba4\u8bc1\u6a21\u5757)"},"content":{"rendered":"<h2 id=\"apache%e6%8c%87%e4%bb%a4%ef%bc%9amod_authn_socache-%e7%a4%be%e4%ba%a4%e7%bc%93%e5%ad%98%e8%ae%a4%e8%af%81%e6%a8%a1%e5%9d%97-oUCUtLUSfR\">Apache\u6307\u4ee4\uff1amod_authn_socache (\u793e\u4ea4\u7f13\u5b58\u8ba4\u8bc1\u6a21\u5757)<\/h2>\n<p>Apache\u662f\u4e00\u79cd\u6d41\u884c\u7684\u5f00\u6e90Web\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u88ab\u5e7f\u6cdb\u7528\u4e8e\u642d\u5efa\u548c\u7ba1\u7406\u7f51\u7ad9\u3002\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u6a21\u5757\uff0c\u7528\u4e8e\u589e\u5f3a\u670d\u52a1\u5668\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\u3002\u5176\u4e2d\u4e00\u4e2a\u91cd\u8981\u7684\u6a21\u5757\u662fmod_authn_socache\uff0c\u5b83\u662fApache\u7684\u8ba4\u8bc1\u6a21\u5757\u4e4b\u4e00\uff0c\u7528\u4e8e\u7f13\u5b58\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\uff0c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<h3 id=\"%e4%bb%80%e4%b9%88%e6%98%afmod_authn_socache%ef%bc%9f-oUCUtLUSfR\">\u4ec0\u4e48\u662fmod_authn_socache\uff1f<\/h3>\n<p>mod_authn_socache\u662fApache\u7684\u4e00\u4e2a\u8ba4\u8bc1\u6a21\u5757\uff0c\u5b83\u901a\u8fc7\u7f13\u5b58\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\u6765\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u5728\u4f20\u7edf\u7684\u8ba4\u8bc1\u8fc7\u7a0b\u4e2d\uff0c\u6bcf\u6b21\u7528\u6237\u8bf7\u6c42\u9700\u8981\u8ba4\u8bc1\u7684\u8d44\u6e90\u65f6\uff0c\u670d\u52a1\u5668\u90fd\u4f1a\u53bb\u9a8c\u8bc1\u7528\u6237\u7684\u8eab\u4efd\uff0c\u8fd9\u4f1a\u6d88\u8017\u5927\u91cf\u7684\u8ba1\u7b97\u8d44\u6e90\u548c\u65f6\u95f4\u3002\u800cmod_authn_socache\u901a\u8fc7\u5c06\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\u7f13\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u53ef\u4ee5\u907f\u514d\u91cd\u590d\u7684\u8ba4\u8bc1\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<h3 id=\"mod_authn_socache%e7%9a%84%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86-oUCUtLUSfR\">mod_authn_socache\u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n<p>mod_authn_socache\u7684\u5de5\u4f5c\u539f\u7406\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u5f53\u7528\u6237\u8bf7\u6c42\u9700\u8981\u8ba4\u8bc1\u7684\u8d44\u6e90\u65f6\uff0c\u670d\u52a1\u5668\u9996\u5148\u68c0\u67e5\u7f13\u5b58\u4e2d\u662f\u5426\u5b58\u5728\u8be5\u7528\u6237\u7684\u8ba4\u8bc1\u4fe1\u606f\u3002<\/li>\n<li>\u5982\u679c\u7f13\u5b58\u4e2d\u5b58\u5728\u7528\u6237\u7684\u8ba4\u8bc1\u4fe1\u606f\uff0c\u670d\u52a1\u5668\u4f1a\u4f7f\u7528\u8be5\u4fe1\u606f\u8fdb\u884c\u8ba4\u8bc1\uff0c\u65e0\u9700\u518d\u6b21\u9a8c\u8bc1\u7528\u6237\u7684\u8eab\u4efd\u3002<\/li>\n<li>\u5982\u679c\u7f13\u5b58\u4e2d\u4e0d\u5b58\u5728\u7528\u6237\u7684\u8ba4\u8bc1\u4fe1\u606f\uff0c\u670d\u52a1\u5668\u4f1a\u8fdb\u884c\u4f20\u7edf\u7684\u8ba4\u8bc1\u8fc7\u7a0b\uff0c\u9a8c\u8bc1\u7528\u6237\u7684\u8eab\u4efd\uff0c\u5e76\u5c06\u8ba4\u8bc1\u4fe1\u606f\u7f13\u5b58\u8d77\u6765\u3002<\/li>\n<li>\u5728\u4e00\u5b9a\u7684\u65f6\u95f4\u95f4\u9694\u540e\uff0c\u7f13\u5b58\u4e2d\u7684\u8ba4\u8bc1\u4fe1\u606f\u4f1a\u8fc7\u671f\uff0c\u670d\u52a1\u5668\u4f1a\u91cd\u65b0\u9a8c\u8bc1\u7528\u6237\u7684\u8eab\u4efd\uff0c\u5e76\u66f4\u65b0\u7f13\u5b58\u4e2d\u7684\u8ba4\u8bc1\u4fe1\u606f\u3002<\/li>\n<\/ol>\n<h3 id=\"%e5%a6%82%e4%bd%95%e9%85%8d%e7%bd%aemod_authn_socache-oUCUtLUSfR\">\u5982\u4f55\u914d\u7f6emod_authn_socache<\/h3>\n<p>\u8981\u4f7f\u7528mod_authn_socache\uff0c\u9996\u5148\u9700\u8981\u5728Apache\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u542f\u7528\u8be5\u6a21\u5757\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00Apache\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e\/etc\/httpd\/conf\/httpd.conf\u3002<\/li>\n<li>\u627e\u5230LoadModule\u6307\u4ee4\uff0c\u786e\u4fdd\u4ee5\u4e0b\u6307\u4ee4\u6ca1\u6709\u88ab\u6ce8\u91ca\uff1a<\/li>\n<\/ol>\n<pre><code>LoadModule authn_socache_module modules\/mod_authn_socache.so\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u627e\u5230\u4ee5\u4e0b\u6307\u4ee4\uff0c\u786e\u4fdd\u5b83\u4eec\u6ca1\u6709\u88ab\u6ce8\u91ca\uff1a<\/li>\n<\/ol>\n<pre><code>CacheEnable socache\nCacheSocache shmcb:\/path\/to\/cache\/file\n<\/code><\/pre>\n<p>\u5728\u4ee5\u4e0a\u6307\u4ee4\u4e2d\uff0c\/path\/to\/cache\/file\u662f\u7528\u4e8e\u5b58\u50a8\u7f13\u5b58\u4fe1\u606f\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n<h3 id=\"mod_authn_socache%e7%9a%84%e4%bc%98%e5%8a%bf-oUCUtLUSfR\">mod_authn_socache\u7684\u4f18\u52bf<\/h3>\n<p>\u4f7f\u7528mod_authn_socache\u53ef\u4ee5\u5e26\u6765\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li>\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u6027\u80fd\uff1a\u901a\u8fc7\u7f13\u5b58\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\uff0c\u907f\u514d\u4e86\u91cd\u590d\u7684\u8ba4\u8bc1\u8fc7\u7a0b\uff0c\u51cf\u5c11\u4e86\u670d\u52a1\u5668\u7684\u8ba1\u7b97\u8d1f\u8f7d\uff0c\u63d0\u9ad8\u4e86\u670d\u52a1\u5668\u7684\u54cd\u5e94\u901f\u5ea6\u3002<\/li>\n<li>\u589e\u5f3a\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\uff1amod_authn_socache\u53ef\u4ee5\u5bf9\u7f13\u5b58\u4e2d\u7684\u8ba4\u8bc1\u4fe1\u606f\u8fdb\u884c\u52a0\u5bc6\uff0c\u9632\u6b62\u4fe1\u606f\u6cc4\u9732\u548c\u7be1\u6539\u3002<\/li>\n<li>\u51cf\u5c11\u5bf9\u540e\u7aef\u8ba4\u8bc1\u670d\u52a1\u5668\u7684\u4f9d\u8d56\uff1a\u7531\u4e8e\u8ba4\u8bc1\u4fe1\u606f\u88ab\u7f13\u5b58\u5728\u672c\u5730\uff0c\u670d\u52a1\u5668\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u7f13\u5b58\u4e2d\u7684\u4fe1\u606f\u8fdb\u884c\u8ba4\u8bc1\uff0c\u51cf\u5c11\u4e86\u5bf9\u540e\u7aef\u8ba4\u8bc1\u670d\u52a1\u5668\u7684\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<h3 id=\"%e6%80%bb%e7%bb%93-oUCUtLUSfR\">\u603b\u7ed3<\/h3>\n<p>mod_authn_socache\u662fApache\u7684\u4e00\u4e2a\u91cd\u8981\u8ba4\u8bc1\u6a21\u5757\uff0c\u901a\u8fc7\u7f13\u5b58\u7528\u6237\u8ba4\u8bc1\u4fe1\u606f\u6765\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002\u5b83\u53ef\u4ee5\u51cf\u5c11\u670d\u52a1\u5668\u7684\u8ba1\u7b97\u8d1f\u8f7d\uff0c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u54cd\u5e94\u901f\u5ea6\uff0c\u5e76\u589e\u5f3a\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027\u3002\u914d\u7f6e\u548c\u4f7f\u7528mod_authn_socache\u76f8\u5bf9\u7b80\u5355\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7f51\u7ad9\u7ba1\u7406\u5458\u63d0\u5347\u7f51\u7ad9\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n<h4 id=\"%e9%a6%99%e6%b8%af%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%a6%96%e9%80%89%e5%90%8e%e6%b5%aa%e4%ba%91-oUCUtLUSfR\">\u9999\u6e2f\u670d\u52a1\u5668\u9996\u9009\u540e\u6d6a\u4e91<\/h4>\n<p>\u540e\u6d6a\u4e91\u662f\u4e00\u5bb6\u4e13\u4e1a\u7684\u4e91\u8ba1\u7b97\u516c\u53f8\uff0c\u63d0\u4f9b\u9999\u6e2f\u670d\u52a1\u5668\u3001\u7f8e\u56fd\u670d\u52a1\u5668\u548c\u4e91\u670d\u52a1\u5668\u7b49\u4ea7\u54c1\u3002\u4f5c\u4e3a\u4e00\u5bb6\u53ef\u9760\u7684\u670d\u52a1\u63d0\u4f9b\u5546\uff0c\u540e\u6d6a\u4e91\u7684\u9999\u6e2f\u670d\u52a1\u5668\u5907\u53d7\u7528\u6237\u9752\u7750\u3002\u65e0\u8bba\u662f\u4e2a\u4eba\u7f51\u7ad9\u8fd8\u662f\u4f01\u4e1a\u5e94\u7528\uff0c\u540e\u6d6a\u4e91\u7684\u9999\u6e2f\u670d\u52a1\u5668\u90fd\u80fd\u63d0\u4f9b\u7a33\u5b9a\u53ef\u9760\u7684\u6027\u80fd\u548c\u5b89\u5168\u4fdd\u969c\u3002<\/p>\n<p>\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u540e\u6d6a\u4e91\u7684\u9999\u6e2f\u670d\u52a1\u5668\uff0c\u8bf7\u8bbf\u95ee<a href=\"https:\/\/idc.net\">https:\/\/idc.net<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache\u6307\u4ee4\uff1amod_authn_socache (\u793e\u4ea4\u7f13\u5b58\u8ba4\u8bc1\u6a21\u5757) Apache\u662f\u4e00\u79cd\u6d41\u884c\u7684\u5f00\u6e90Web [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-233927","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/233927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=233927"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/233927\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=233927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=233927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=233927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}