{"id":137405,"date":"2020-07-20T15:39:07","date_gmt":"2020-07-20T07:39:07","guid":{"rendered":"http:\/\/4563.org\/?p=137405"},"modified":"2020-07-20T15:39:07","modified_gmt":"2020-07-20T07:39:07","slug":"opcache-%e9%85%8d%e5%90%88%e8%bd%af%e9%93%be%e6%8e%a5%e5%8f%91%e5%b8%83%e7%9a%84%e4%b8%80%e4%b8%aa%e7%96%91%e9%97%ae%ef%bc%8c%e5%b8%8c%e6%9c%9b%e6%87%82%e7%9a%84%e4%ba%ba%e5%b8%ae%e5%bf%99%e8%a7%a3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=137405","title":{"rendered":"OPcache \u914d\u5408\u8f6f\u94fe\u63a5\u53d1\u5e03\u7684\u4e00\u4e2a\u7591\u95ee\uff0c\u5e0c\u671b\u61c2\u7684\u4eba\u5e2e\u5fd9\u89e3\u7b54\u4e00\u4e0b"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  OPcache \u914d\u5408\u8f6f\u94fe\u63a5\u53d1\u5e03\u7684\u4e00\u4e2a\u7591\u95ee\uff0c\u5e0c\u671b\u61c2\u7684\u4eba\u5e2e\u5fd9\u89e3\u7b54\u4e00\u4e0b               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u679c\u4e00\u4e2a\u9879\u76ee\u5f00\u542f\u4e86 OPcache\uff0c\u4f46\u662f\u4e0d\u542f\u7528\u9884\u52a0\u8f7d\uff0c\u540c\u65f6\u8be5\u9879\u76ee\u4f7f\u7528\u7684\u662f\u8f6f\u94fe\u63a5\u5230\u65b0\u76ee\u5f55\u7684\u65b9\u5f0f\u53d1\u5e03\u65b0\u7248\u672c\u3002<\/p>\n<p>\u56e0\u4e3a OPcache \u4f7f\u7528\u7684\u662f\u6587\u4ef6\u8def\u5f84\u6765\u6807\u8bc6\u7f13\u5b58\uff0c\u7531\u4e8e\u8f6f\u94fe\u63a5\u5230\u4e86\u65b0\u7684\u76ee\u5f55\uff0c\u6240\u4ee5\u6587\u4ef6\u8def\u5f84\u53d8\u4e86\uff0c\u90a3\u4e0d\u5c31\u8981\u91cd\u5efa\u5168\u90e8\u7684\u7f13\u5b58\uff0c\u4e0d\u5c31\u662f\u7f13\u5b58\u96ea\u5d29\u4e86\u4e48\uff1f\u5c31\u7b97\u5f00\u542f\u4e86 OPcahce \u7684 file cache \u597d\u50cf\u4e5f\u5e2e\u4e0d\u4e0a\u5fd9\uff0c\u56e0\u4e3a file cache \u4e5f\u662f\u57fa\u4e8e\u6587\u4ef6\u8def\u5f84\u7684\u3002<\/p>\n<p>\u95ee\u9898\u4e00\uff1a\u662f\u4e0d\u662f\u771f\u7684\u5c31\u4f1a\u7f13\u5b58\u96ea\u5d29\uff1f \u95ee\u9898\u4e8c\uff1a\u9664\u4e86\u6362\u6210\u8986\u76d6\u5f0f\u53d1\u5e03\uff0c\u8fd8\u6709\u529e\u6cd5\u89e3\u51b3\u4e48\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>26<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2559685\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rushssss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b2c\u4e00\u7f13\u5b58\u96ea\u5d29\u4e0d\u662f\u8fd9\u4e2a\u610f\u601d\uff0c\u7b2c\u4e8c\u4f60\u66f4\u65b0\u4e86\u4ee3\u7801\u4f46\u662f OPcache \u4e0d\u66f4\u65b0\u8dd1\u7684\u4e0d\u5c31\u662f\u539f\u6765\u7684\u4ee3\u7801\u4e86\uff1f \u90a3\u66f4\u65b0\u4ee3\u7801\u6709\u5565\u610f\u4e49                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559686\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rushssss \u8fd9\u4e2a\u4e0d\u662f\u7f13\u5b58\u96ea\u5d29\u4e48\uff0c\u90a3\u662f\u5565\uff1f\u7b2c\u4e8c\u70b9\uff0c\u4ee3\u7801\u53d1\u5e03\u5230\u65b0\u76ee\u5f55\u4e0b\uff0c\u6240\u6709\u6587\u4ef6\u7684\u8def\u5f84\u5168\u90e8\u53d8\u4e86\uff0cOPcache \u4e2d\u73b0\u6709\u7684\u7f13\u5b58\u5168\u90fd\u662f\u4ee5\u524d\u7684\u8def\u5f84\u7684\uff0c\u4e5f\u7528\u4e0d\u5230\u4e86\uff0c\u76f8\u5f53\u4e8e\u81ea\u52a8\u4f5c\u5e9f\u4e86\uff0c\u4e0d\u662f\u4e48\uff1f\u7136\u540e\u8fd9\u65f6\u5019\u53bb\u8bbf\u95ee\u65b0\u7248\u672c\uff0c\u4e0d\u5c31\u76f8\u5f53\u4e8e\u4ece\u5934\u5f00\u59cb\u5efa\u7f13\u5b58\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559687\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5728\u8bf4\u4ec0\u4e48\uff1f\u5148\u628a\u6982\u5ff5\u641e\u6e05\u695a\u518d\u53d1\u5e16\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559688\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yc8332 \u6211\u53bb\u6539\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559689\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : simapple <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u662f\u8981\u505a\u4ec0\u4e48\uff1f\u8ba9\u4e0d\u540c\u673a\u5668\u7684 php \u8fdb\u7a0b\u590d\u7528\u540c\u4e00\u4efd opcache \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559690\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @simapple \u5c31\u662f\u60f3\u95ee\u4e00\u4e0b\uff0c\u4f7f\u7528\u8f6f\u94fe\u63a5\u5230\u65b0\u76ee\u5f55\u7684\u65b9\u5f0f\u53d1\u5e03\u65b0\u7248\u672c\uff0c\u65e7\u7684 OPcache \u7f13\u5b58\u5c31\u5168\u90e8\u5931\u6548\uff0c\u5c31\u76f8\u5f53\u4e8e\u4ece\u5934\u5efa\u7f13\u5b58\uff0c\u5728\u9ad8\u6d41\u91cf\u7684\u670d\u52a1\u5668\u4e0a\u538b\u529b\u4e0d\u5c31\u77ac\u95f4\u4e0a\u6765\u4e86\uff1f\u60f3\u95ee\u4e00\u4e0b\u6709\u6ca1\u6709\u4ec0\u4e48\u529e\u6cd5\u89e3\u51b3\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559691\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             opcache \u7684\u7f13\u5b58\u4e5f\u662f\u6709\u65f6\u95f4\u7684\u3002\u5e76\u4e0d\u662f\u8bf4\u4f60\u4ee3\u7801\u66f4\u65b0\u4e86\u9a6c\u4e0a\u5c31\u66f4\u65b0\uff0c\u66f4\u65b0\u4e5f\u4e0d\u662f\u5168\u90e8\u90fd\u66f4\u65b0\uff0c\u7528\u5230\u624d\u4f1a\u66f4\u65b0\u3002\u3002\u800c\u4e14\u8fd9\u4e2a\u4e5f\u4e0d\u662f\u4ec0\u4e48\u7f13\u5b58\u51fb\u7a7f\u3001\u7f13\u5b58\u96ea\u5d29\u3002\u3002\u3002\u90a3\u4e2a\u662f\u76f8\u5bf9\u5e94\u7f13\u5b58\u7cfb\u7edf\u6765\u8bf4\u7684\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u81ea\u5df1\u641c\u7d22\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559692\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yc8332 OPcache \u4e5f\u7b97\u662f\u7f13\u5b58\uff0c\u600e\u4e48\u4e0d\u80fd\u7528\u8fd9\u4e9b\u8bcd\u554a\uff0c\u6709\u4eba\u89c4\u5b9a\u8fd9\u4e9b\u8bcd\u53ea\u80fd\u7528\u5728 redis \u548c memcache \u4e0a\uff1f\u518d\u8005\uff0c\u4f60\u786e\u5b9a\u4f60\u7406\u89e3\u6211\u5728\u95ee\u4ec0\u4e48\u4e86\u4e48\uff1f\u6211\u770b\u4e0d\u662f\u6211\u8bb2\u7684\u4e0d\u591f\u6e05\u695a\uff0c\u662f\u4f60\u6ca1\u7406\u89e3\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559693\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hauzi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u628a\u5e38\u7528\u7684 PHP \u811a\u672c\u9884\u70ed\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559694\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hauzi \u6211\u660e\u767d\u9884\u52a0\u8f7d\u53ef\u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u4e0d\u662f\u6240\u6709\u9879\u76ee\u90fd\u80fd\u9884\u52a0\u8f7d\uff0c\u800c\u4e14\u9884\u52a0\u8f7d\u662f\u628a\u7f13\u5b58\u653e\u5728\u5de5\u4f5c\u8fdb\u7a0b\u4e0a\uff0c\u4e5f\u4e0d\u662f\u6240\u6709\u5185\u5bb9\u90fd\u9002\u5408\u9884\u52a0\u8f7d\uff0c\u6240\u4ee5\u6211\u624d\u95ee\u4e0d\u542f\u7528\u9884\u52a0\u8f7d\u7684\u60c5\u51b5\u4e0b\uff0c\u6709\u6ca1\u6709\u529e\u6cd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559695\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 opcache \u4e0d\u4f1a\u9a6c\u4e0a\u90fd\u66f4\u65b0\uff0c\u4f60\u89c9\u5f97\u4f60\u7684 php-fpm \u8fdb\u7a0b\u4e00\u5f00\u59cb\uff0c\u670d\u52a1\u5668\u7684\u5904\u7406\u80fd\u529b\u4f1a\u5f71\u54cd\u5230\u4f60\u7684 qps \u5417\uff1f\u5982\u679c\u4e0d\u4f1a\uff0c\u66f4\u65b0\u4ee3\u7801\u4e5f\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559696\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yc8332 \u8bf7\u6c42\u4e00\u4e2a\u65b0\u6587\u4ef6\uff0c\u4e0d\u4f1a\u53bb\u66f4\u65b0\uff1f\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\uff0c\u591a\u4eba\u540c\u65f6\u53bb\u8bfb\u53d6\u8fd9\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u5c1d\u8bd5\u53bb\u628a\u8fd9\u4e2a\u6587\u4ef6\u7684\u5b57\u8282\u7801\u5199\u5230 OPcache \u4e2d\uff0c\u90a3\u4e2a\u77ac\u95f4\uff0cCPU \u538b\u529b\u4e0d\u5c31\u7206\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559697\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coosir <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66f4\u65b0\u4ee3\u7801\u540e\uff0c\u4e3b\u52a8\u6e05\u4e00\u4e0b opcache                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559698\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @coosir opcache \u88ab\u91cd\u7f6e\u540e\uff0c\u4e0d\u4e5f\u662f\u76f8\u5f53\u4e8e\u4efb\u4f55\u7f13\u5b58\u90fd\u6ca1\u6709\u4e86\uff0c\u6548\u679c\u4e0d\u4e5f\u548c\u7f13\u5b58\u96ea\u5d29\u4e00\u6837\u4e86\u4e48\uff1f\u77ac\u95f4\u538b\u529b\u5c31\u4e0a\u6765\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559699\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : loveyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e86\u4e0a\u9762\u7684\u3002\u4e3b\u5b89\u5fc3\u6458\u6d41\u91cf\uff0c\u7136\u540e\u4e00\u70b9\u70b9\u653e\u91cf\u5427\uff0c\u8fd9\u6837\u5c31\u6ca1\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n<p>\u8fd8\u8981\uff0c\u6e05\u7f13\u5b58\u5c31\u662f\u4e86\uff0c\u5e76\u53d1\u8bfb\u6587\u4ef6\u5efa\u7f13\u5b58\u90a3\u70b9\u538b\u529b\uff0c\u5ffd\u7565\u5427                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559700\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @loveyu \u9ad8\u5e76\u53d1\u4e0b\u91cd\u5efa\u7f13\u5b58\u90a3\u4e2a\u77ac\u95f4\uff0c\u538b\u529b\u6bd4\u4e0d\u5f00\u542f OPcache \u76f4\u63a5\u53bb\u8bfb PHP \u6e90\u6587\u4ef6\u8fd8\u8981\u5927\uff0c\u76f4\u63a5\u4e0d\u7ba1\u4e86\u4e48\uff1f\u6211\u89c9\u5f97\u8fd9\u4e2a\u70b9\u53ef\u80fd\u662f PHP \u538b\u529b\u7684\u6700\u9ad8\u70b9\uff0c\u6700\u6709\u53ef\u80fd\u6491\u4e0d\u4f4f\u7684\u5c31\u662f\u8fd9\u4e2a\u70b9\uff0c\u6240\u4ee5\u624d\u60f3\u95ee\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559701\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coosir <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u771f\u6709\u8fd9\u4e48\u5927\u6d41\u91cf\u90a3\u5c31\u662f\u5f88\u591a\u4e2a\u5b9e\u4f8b\u6765\u652f\u6491\uff0c\u90a3\u4e48\u5c31\u4e0d\u5e94\u8be5\u70ed\u66f4\u3002<br \/>\u5c31\u50cf\u4e0a\u9762\u8bf4\u7684\uff0c\u53d1\u5e03\u7684\u65f6\u5019\u90e8\u5206\u5b9e\u4f8b\u5148\u6458\u6389\u4e0b\u7ebf\uff0c\u66f4\u65b0\u4ee3\u7801\uff0c\u9884\u70ed\u597d\uff0c\u518d\u4e0a\u7ebf\u3002\u9010\u6b65\u66f4\u65b0\u6240\u6709\u5b9e\u4f8b\u9632\u6b62\u670d\u52a1\u4e2d\u65ad\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559702\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @coosir \u660e\u767d\u4e86\uff0c\u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559703\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gantleman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u7f13\u5b58\u670d\u52a1\u91cd\u7f6e\u540e\uff0c\u91cd\u5efa\u7f13\u51b2\u5b58\u662f\u5426\u4f1a\u5bfc\u81f4\u540e\u7aef\u538b\u529b\u8fc7\u5927\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\u5916\u7f51\u5e26\u5bbd\u8fdc\u8fdc\u5c0f\u4e8e\u5185\u7f51\u5e26\u5bbd\uff0c\u5185\u7f51\u5e26\u5bbd\u8fdc\u8fdc\u5c0f\u4e8e\u786c\u76d8 io \u3002\u6240\u4ee5\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u5b58\u5728\u51fb\u7a7f\u6216\u96ea\u5d29\u3002\u6709\u4e00\u79cd\u7279\u6b8a\u60c5\u51b5\uff0c\u5c31\u662f\u6240\u6709\u5916\u7f51\u5e26\u5bbd\u6301\u7eed\u96c6\u4e2d\u5728\u4e00\u70b9\uff0c\u5916\u7f51\u5e26\u5bbd\u603b\u548c\u5927\u4e8e\u78c1\u76d8 io \u3002\u4f8b\u5982\u4ea7\u54c1\u6d3b\u52a8\u7684\u7279\u6b8a\u60c5\u51b5\u3002\u7136\u540e\u7f13\u5b58\u670d\u52a1\u5668\u6545\u969c\u91cd\u7f6e\uff0c\u538b\u529b\u7a81\u7136\u540e\u79fb\u5230 io \u3002\u8fdb\u800c\u5bfc\u81f4\u62d2\u7edd\u670d\u52a1\u3002<\/p>\n<p>\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u9996\u5148\u6709\u4e00\u4e2a\u5fc5\u8981\u6761\u4ef6\uff0c\u5c31\u662f\u5916\u7f51\u5e26\u5bbd\u5927\u4e8e\u78c1\u76d8 io \u3002\u5f53\u524d\u670d\u52a1\u5668\u78c1\u76d8 io \u4e00\u822c\u901f\u5ea6\u4e3a 500m \u6bcf\u79d2\u3002\u5355\u53f0\u670d\u52a1\u5916\u7f51\u5e26\u5bbd\u7ea6\u4e3a 24m \u3002\u5927\u6982\u662f\u5927\u4e8e 20 \u53f0\u4e3b\u673a\u7684\u96c6\u7fa4\u89c4\u6a21\u3002\u90a3\u4e48\u8fd9 20 \u591a\u53f0\u670d\u52a1\u5668\u63a5\u5230\u8bf7\u6c42\u4e0d\u505a\u4efb\u4f55\u5904\u7406\u76f4\u63a5\u8f6c\u53d1\u7ed9\u540c\u4e00\u53f0\u670d\u52a1\u5668\u3002\u5e76\u4e14\u90a3\u53f0\u670d\u52a1\u5668\u7f13\u5b58\u91cd\u7f6e\u51fa\u73b0\u96ea\u5d29\u3002<\/p>\n<p>\u7b2c\u4e8c\u670d\u52a1\u5668\u8bfb\u5199\u6570\u636e\u6709 28 \u5b9a\u5f8b\uff0c20%\u4e3a\u5199\u5165\u64cd\u4f5c\uff0c80%\u4e3a\u8bfb\u53d6\u64cd\u4f5c\u3002\u51fa\u73b0\u96ea\u5d29\u4e5f\u5c31\u662f\u5bf9\u4e8e 80%\u7684\u8bfb\u53d6\u64cd\u4f5c\u4e0d\u505a CDN \u52a0\u901f\u3002\u5982\u679c\u6709 cdn \u52a0\u901f\uff0c\u96ea\u5d29\u7684\u6761\u4ef6\u5c31\u8981\u4e0a\u5347\u5230 100 \u53f0\u670d\u52a1\u5668\u540c\u65f6\u5199\u5165\u5e76\u5185\u5b58\u91cd\u7f6e\u3002 \u4e5f\u5c31\u662f\u9700\u8981\u5916\u7f51\u5e26\u5bbd\u8981\u9ad8\u8fbe 2400m\uff0c\u624d\u53ef\u80fd\u89e6\u53d1\u96ea\u5d29\u3002\u8fd9\u91cc\u8fd8\u6ca1\u8003\u8651\u9650\u6d41\u63aa\u65bd\u3002<\/p>\n<p>\u96ea\u5d29\u6709\u5b58\u5728\u7684\u53ef\u80fd\uff0c\u4f46\u5728\u5b9e\u9645\u8fd0\u7ef4\u7684\u6761\u4ef6\u4e0b\uff0c\u8981\u8fbe\u5230\u96ea\u5d29\u7684\u6761\u4ef6\u975e\u5e38\u82db\u523b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559704\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wangritian <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4f60\u771f\u7684\u62c5\u5fc3\u5927\u6d41\u91cf\uff0c\u4f18\u5316\u4e1a\u52a1\u903b\u8f91\u4e3a\u5148\uff0c\u7528\u597d redis\uff0c\u7136\u540e\u505a\u8d1f\u8f7d\u5747\u8861+\u591a\u53f0\u90e8\u7f72\uff0c\u65f6\u95f4\u5141\u8bb8\u7684\u8bdd\uff0c\u5e95\u5c42\u4ee3\u7801\u6362 swoole \u534f\u7a0b\uff0c\u6700\u540e\u4e0a\u4e00\u5957 k8s \u505a\u597d\u81ea\u52a8\u90e8\u7f72                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559705\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yc8332 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u8bf4\u4e86 opcache \u4e0d\u662f\u9a6c\u4e0a\u5931\u6548\uff0c\u662f\u53bb\u68c0\u6d4b\u662f\u5426\u5931\u6548\uff0c\u91cd\u5efa\u3002\u548c\u4f60\u81ea\u5df1\u8bbe\u8ba1\u7f13\u5b58\u7cfb\u7edf\u4e00\u4e0b\uff0c\u4f60\u4f1a\u8ba9\u6240\u6709\u7684\u8bf7\u6c42\u90fd\u53bb\u91cd\u5efa\u4e00\u4e2a\u901a\u7528\u7684\u7f13\u5b58\u5417\uff1f\u4eba\u5bb6\u7684\u7cfb\u7edf\u662f\u8003\u8651\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559706\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gantleman \u8c22\u8c22\uff0c\u6211\u660e\u767d\u670d\u52a1\u5668\u5d29\u6e83\u5e76\u4e0d\u662f\u8fd9\u4e48\u5bb9\u6613\u3002\u6211\u662f\u53cd\u8fc7\u6765\u60f3\uff0c\u628a OPcache \u7f13\u5b58\u53ef\u80fd\u4f1a\u9020\u6210\u96ea\u5d29\u7684\u60c5\u51b5\u7ed9\u627e\u51fa\u6765\u5e76\u89e3\u51b3\uff0c\u5c31\u4e0d\u7528\u62c5\u5fc3\u96ea\u5d29\u4e86\u3002OPcache \u7684\u8bbe\u8ba1\u662f\u57fa\u4e8e\u6e90\u6587\u4ef6\u8def\u5f84\u6765\u7f13\u5b58\u6e90\u6587\u4ef6\u7684\u5b57\u8282\u7801\uff0c\u5982\u679c\u91c7\u53d6\u8986\u76d6\u5f0f\u53d1\u5e03\uff0c\u53d1\u5e03\u5b8c\u8981\u91cd\u7f6e\u7f13\u5b58\uff0c\u7406\u8bba\u4e0a\u8fd9\u91cc\u4e5f\u4f1a\u53d1\u751f\u7f13\u5b58\u96ea\u5d29\uff0c\u4f46\u662f\u6b64\u65f6\u53ef\u4ee5\u5f00\u542f OPcache \u7684 file cache\uff0c\u867d\u7136\u538b\u529b\u8fd8\u662f\u4f1a\u6709\uff0c\u4f46\u662f\u4e0d\u81f3\u4e8e\u5d29\u6e83\uff0c\u5982\u679c\u9879\u76ee\u8fd8\u53ef\u4ee5\u5f00\u542f\u9884\u52a0\u8f7d\uff0c\u538b\u529b\u5c31\u4f1a\u66f4\u5c0f\uff0c\u6240\u4ee5\u5728\u8986\u76d6\u5f0f\u53d1\u5e03\u4e0b\uff0c\u96ea\u5d29\u53ef\u4ee5\u907f\u514d\u3002\u4f46\u8f6f\u94fe\u63a5\u5f0f\u53d1\u5e03\uff0c\u65b0\u7248\u672c\u7684\u4ee3\u7801\u5168\u90fd\u5728\u65b0\u7684\u8def\u5f84\u4e0b\uff0c\u800c\u5c31\u50cf\u4e0a\u9762\u8bf4\u7684 OPcache \u7684\u8bbe\u8ba1\u662f\u57fa\u4e8e\u6e90\u6587\u4ef6\u8def\u5f84\u6765\u7f13\u5b58\u7684\uff0c\u6240\u4ee5\u4e4b\u524d\u4e3a\u65e7\u7248\u672c\u5efa\u597d\u7684\u7f13\u5b58\u5168\u90fd\u76f8\u5f53\u4e8e\u81ea\u52a8\u5931\u6548\u4e86\uff0c\u8fd8\u5360\u7740\u4f4d\u7f6e\uff0cfile cache \u4e5f\u662f\u4e00\u6837\u5931\u6548\u4e86\uff0c\u5982\u679c\u518d\u4e0d\u80fd\u542f\u7528\u9884\u52a0\u8f7d\uff0c\u6211\u8ba4\u4e3a\u4e00\u5b9a\u4f1a\u7f13\u5b58\u96ea\u5d29\u3002\u81f3\u4e8e\u7f13\u5b58\u96ea\u5d29\u4f1a\u4e0d\u4f1a\u5bfc\u81f4\u670d\u52a1\u5668\u5d29\u6e83\uff0c\u90a3\u8981\u770b\u60c5\u51b5\u3002\u6240\u4ee5\u6211\u76ee\u524d\u8ba4\u4e3a\uff0c\u8f6f\u94fe\u63a5\u5f0f\u53d1\u5e03\uff0c\u4e00\u5b9a\u4f1a\u7f13\u5b58\u96ea\u5d29\uff0c\u8fd9\u4e2a\u95ee\u9898\u8fd8\u662f\u8981\u5c3d\u91cf\u53bb\u89e3\u51b3\u6389\u7684\uff0c\u89e3\u51b3\u4e0d\u6389\u624d\u53ef\u4ee5\u91c7\u7528\u4f60\u4eec\u5efa\u8bae\u7684\u5404\u79cd\u65b9\u6848\u8fdb\u884c\u89c4\u907f\uff0c\u603b\u4e4b\u653e\u5728\u90a3\u4e0d\u7406\u4f1a\u611f\u89c9\u4e0d\u592a\u597d\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4f60\u8bf4\u7684\u5916\u7f51\u5e26\u5bbd\u3001\u5185\u5916\u5e26\u5bbd\u548c\u786c\u76d8 io \u7684\u8fd9\u79cd\u9636\u68af\u6211\u5176\u5b9e\u4e5f\u77e5\u9053\u3002\u5982\u679c\u53ea\u662f\u8bfb\u5199\u6587\u4ef6\uff0c\u90a3\u786e\u5b9e\u51e0\u4e4e\u767e\u5206\u767e\u9002\u7528\uff0c\u56e0\u4e3a\u662f\u5bf9\u4e8e\u4e09\u8005\u6765\u8bf4\uff0c\u6570\u636e\u91cf\u5dee\u4e0d\u591a\u662f\u76f8\u7b49\u7684\u3002\u4f46\u5bf9\u4e8e Web \u8bf7\u6c42\u6765\u8bf4\u5c31\u4e0d\u4e00\u5b9a\u4e86\uff0c\u4e00\u4e2a\u52a8\u6001 http \u8bf7\u6c42\u8fd4\u56de\u7684\u6570\u636e\u5927\u5c0f\u4e00\u822c\u90fd\u5728\u51e0 k \u5230\u5c0f\u51e0\u5341 k \u4e4b\u95f4\uff0c\u800c\u4e3a\u4e86\u751f\u6210\u8fd9\u4efd\u8bf7\u6c42\u6570\u636e\uff0c\u8bfb\u5199\u7684 PHP \u6e90\u6587\u4ef6\u5f88\u53ef\u80fd\u6709\u5c0f\u51e0\u5341\u4e2a\uff0c\u603b\u5927\u5c0f\u52a0\u8d77\u6765\u4e0a\u767e k \u4e5f\u662f\u5f88\u5e38\u89c1\u7684\uff0c\u8fd9\u65f6\u8fd9\u79cd\u901f\u5ea6\u9636\u68af\u4e0d\u89c1\u5f97\u53ef\u9760\uff0c\u8fd8\u662f\u8981\u89c2\u5bdf\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u53ea\u7528\u8fc7 CDN \u52a0\u901f\u9759\u6001\u8bf7\u6c42\u6587\u4ef6\uff0c\u8fd8\u6ca1\u52a0\u901f\u8fc7\u52a8\u6001\u8bf7\u6c42\u6587\u4ef6\uff0c\u6240\u4ee5\u8fd9\u5757\u4fdd\u7559\u4e0d\u8c08\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559707\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gantleman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u4e5f\u8bb8\u4f60\u8fd8\u4f1a\u627e\u5230\u5176\u4ed6\u7684\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u80fd\u5728\u4e00\u5b9a\u6982\u7387\u4e0a\u4fdd\u8bc1\u670d\u52a1\u5668\u4e0d\u5d29\u6e83\u3002\u5e76\u4e14\u6bcf\u589e\u52a0\u4e00\u4e2a\u65b9\u6cd5\u90fd\u4f1a\u964d\u4f4e\u5d29\u6e83\u7684\u6982\u7387\u3002\u4e5f\u53ef\u4ee5\u627e\u5230\u4e00\u79cd\u4f7f\u5d29\u6e83\u5927\u5e45\u4e0b\u964d\u7684\u65b9\u6cd5\u3002\u4e5f\u53ef\u80fd\u4f1a\u627e\u5230\u4e00\u79cd\u4ef7\u683c\u6700\u4fbf\u5b9c\u7684\u65b9\u6cd5\u3002\u6216\u8005\u627e\u5230\u4e00\u4e2a\u4ef7\u683c\u6700\u4fbf\u5b9c\u5e76\u4e14\u6548\u679c\u6700\u597d\u7684\u65b9\u6cd5\u3002\u4f46\u4f60\u601d\u8003\u7684\u95ee\u9898\u5df2\u7ecf\u975e\u5e38\u7684\u6df1\u3002\u6050\u6015\u5f88\u5c11\u4eba\u80fd\u5e2e\u52a9\u4f60\uff0c\u9700\u8981\u4f60\u81ea\u5df1\u53bb\u5b9e\u9a8c\u4ee3\u7801\uff0c\u68c0\u7d22\u5f00\u6e90\u4ee3\u7801\uff0c\u67e5\u627e\u8bba\u6587\u3002\u4ece\u6a21\u7cca\u7684\u77e5\u8bc6\u788e\u7247\u5230\u5f62\u6210\u95ee\u9898\uff0c\u5230\u627e\u5230\u7b54\u6848\uff0c\u518d\u5b9e\u9a8c\uff0c\u518d\u8fed\u4ee3\u3002<br \/>\u597d\u50cf\u6211\u53c8\u81ea\u8a00\u81ea\u8bed\u7684\u8bf4\u5947\u602a\u7684\u8bdd\uff0c\u7b80\u5355\u8bf4\u6211\u77e5\u9053\u7684\u5c31\u8fd9\u4e48\u591a\u4e86\u3002\u5b8c\u5168\u907f\u514d\u5d29\u6e83\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u4f46\u5e94\u8be5\u6709\u66f4\u597d\u7684\u65b9\u6cd5\u8fd8\u6ca1\u88ab\u53d1\u73b0\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yc8332 \u80fd\u8bf4\u4e00\u4e0b\u662f\u600e\u4e48\u505a\u5230\u7684\u4e48\uff1f\u662f\u7528\u4e86\u9501\u548c\u961f\u5217\uff0c\u8fd8\u662f\u50cf APCu \u90a3\u6837\u901a\u8fc7 slam_defense \u53bb\u968f\u673a\u62bd\u7b7e\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559709\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gantleman \u6211\u4e0d\u8ba4\u4e3a\u4f60\u8bf4\u7684\u8bdd\u5947\u602a\u54c8\uff0c\u633a\u5b9e\u7528\u7684\uff0c\u867d\u7136\u4e0d\u89c1\u5f97\u80fd\u767e\u5206\u767e\u9002\u7528\uff0c\u4f46\u65b9\u5411\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u518d\u6b21\u611f\u8c22\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2559710\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rushssss <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             OPcache \u7684\u7f13\u5b58\u662f\u57fa\u4e8e\u65f6\u95f4\u7684\uff0c\u8fc7\u671f\u7684\u624d\u4f1a\u53bb\u91cd\u8f7d\u7f13\u5b58\uff0c\u800c\u53d1\u5e03\u4ee3\u7801\u6700\u91cd\u8981\u7684\u662f\u4ec0\u4e48\uff1f\u662f\u786e\u5b9a\u65b0\u4ee3\u7801\u4e0a\u7ebf\u5e76\u4e14\u4fdd\u6301\u4e00\u81f4\u6027\uff01<\/p>\n<p>\u6240\u4ee5\u53d1\u5e03\u4ee3\u7801\u4ee5\u540e\u90fd\u4f1a\u4e3b\u52a8\u6e05\u9664\u7f13\u5b58\u4ee5\u4fdd\u6301\u65b0\u4ee3\u7801\u7684\u4e00\u81f4\u6027\uff0c\u8fd9\u91cc\u4e0d\u662f\u4e00\u4e2a\u53ef\u4ee5\u505a\u6027\u80fd\u4f18\u5316\u7684\u70b9\uff0c\u800c\u662f\u5fc5\u8981\u7684\u64cd\u4f5c\u3002<\/p>\n<p>\u53e6\u5916\u6839\u636e\u7ecf\u9a8c OPcache \u5e26\u6765\u7684\u6027\u80fd\u63d0\u5347\u767e\u5206\u6bd4\u4e0d\u4f1a\u8d85\u8fc7\u6574\u4e2a\u7cfb\u7edf\u7684\u6027\u80fd\u4e0a\u9650\uff0c\u9664\u975e\u4f60\u7684\u7cfb\u7edf\u672c\u6765\u5c31\u4e0d\u52d8\u91cd\u8d1f\u5fc5\u987b\u8981\u8fd0\u884c warm \u7684\u4ee3\u7801\u624d\u80fd\u6b63\u5e38\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n<p>\u6700\u540e\u5982\u679c\u5b9e\u5728\u4e0d\u80fd\u63a5\u53d7\u7f13\u5b58\u5931\u6548\u7684\u4ee3\u4ef7\uff0c\u90a3\u5c31\u6eda\u52a8\u66f4\u65b0\u4e86\uff0c\u4e00\u4e2a\u65b0\u5b9e\u4f8b\u8db3\u591f warm \u4ee5\u540e\u64a4\u4e0b\u4e00\u4e2a\u65e7\u5b9e\u4f8b\u518d\u4ee5\u6b64\u7c7b\u63a8                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>OPcache \u914d\u5408\u8f6f\u94fe\u63a5\u53d1\u5e03\u7684\u4e00&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/137405"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=137405"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/137405\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=137405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=137405"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=137405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}