{"id":181487,"date":"2024-05-08T20:58:21","date_gmt":"2024-05-08T12:58:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/181487.html"},"modified":"2024-05-08T20:58:27","modified_gmt":"2024-05-08T12:58:27","slug":"nginx%e5%a6%82%e4%bd%95%e8%ae%b0%e5%bd%95php%e7%9a%84%e5%93%8d%e5%ba%94%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/181487.html","title":{"rendered":"nginx\u5982\u4f55\u8bb0\u5f55PHP\u7684\u54cd\u5e94\u65f6\u95f4"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27071206\/2d6be2af-f941-4d35-be1e-1a1e5daf0838.webp\" alt=\"nginx\u5982\u4f55\u8bb0\u5f55PHP\u7684\u54cd\u5e94\u65f6\u95f4\" \/><\/p>\n<p><p>\u5728\u914d\u7f6eNGINX\u670d\u52a1\u5668\u65f6\uff0c\u8bb0\u5f55PHP\u54cd\u5e94\u65f6\u95f4\u662f\u8bc4\u4f30\u7f51\u7ad9\u6027\u80fd\u7684\u5173\u952e\u56e0\u7d20\u3002<strong>\u4e3a\u4e86\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff0c\u53ef\u4ee5\u5229\u7528NGINX\u7684\u65e5\u5fd7\u6a21\u5757\u3001\u4fee\u6539fastcgi_params\u914d\u7f6e\u3001\u6216\u8005\u4f7f\u7528\u7b2c\u4e09\u65b9\u6a21\u5757\u5982OpenResty\u8fdb\u884c\u6269\u5c55\u3002<\/strong> \u4e0b\u9762\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u4fee\u6539NGINX\u914d\u7f6e\u6587\u4ef6\u6765\u8bb0\u5f55PHP\u54cd\u5e94\u65f6\u95f4\uff0c\u8fd9\u5728\u6027\u80fd\u76d1\u63a7\u548c\u8c03\u4f18\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728NGINX\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbe\u7f6elog_format\uff0c\u589e\u52a0&#039;$upstream_response_time&#039;\u53d8\u91cf\u6765\u8bb0\u5f55\u4ecePHP-fpm\u63a5\u6536\u54cd\u5e94\u7684\u65f6\u95f4\u3002\u63a5\u4e0b\u6765\uff0c\u5728access_log\u6307\u4ee4\u4e2d\u4f7f\u7528\u5b9a\u4e49\u597d\u7684log_format\u3002\u8fd9\u6837\uff0c\u6bcf\u4e00\u6b21\u5bf9PHP\u8d44\u6e90\u7684\u8bf7\u6c42\u90fd\u4f1a\u5728\u65e5\u5fd7\u6587\u4ef6\u4e2d\u8bb0\u5f55\u4e0b\u5bf9\u5e94\u7684\u54cd\u5e94\u65f6\u95f4\u3002 <\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u914d\u7f6eNGINX\u65e5\u5fd7\u683c\u5f0f<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u8bb0\u5f55PHP\u54cd\u5e94\u65f6\u95f4\uff0c\u9996\u5148\u9700\u8981\u5b9a\u4e49\u4e00\u4e2aNGINX\u65e5\u5fd7\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code>http {<\/p>\n<p>    log_format timed_combined &#039;$remote_addr - $remote_user [$time_local] &#039;<\/p>\n<p>                             &#039;&quot;$request&quot; $status $body_bytes_sent &#039;<\/p>\n<p>                             &#039;&quot;$http_referer&quot; &quot;$http_user_agent&quot; &#039;<\/p>\n<p>                             &#039;$upstream_response_time&#039;;<\/p>\n<p>    ...<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u540d\u4e3a<code>timed_combined<\/code>\u7684\u65e5\u5fd7\u683c\u5f0f\u5305\u62ec\u4e86\u6807\u51c6\u7684Combined Log Format\u4fe1\u606f\uff0c\u5e76\u6dfb\u52a0\u4e86<code>$upstream_response_time<\/code>\u53d8\u91cf\uff0c\u5b83\u8bb0\u5f55\u4e86\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u914d\u7f6e\u8bbf\u95ee\u65e5\u5fd7<\/h3>\n<\/p>\n<p><p>\u914d\u7f6e\u597d\u4e86\u65e5\u5fd7\u683c\u5f0f\u540e\uff0c\u9700\u8981\u8bbe\u7f6eNGINX\u5728\u54ea\u4e2a\u6587\u4ef6\u4e2d\u8bb0\u5f55\u8fd9\u4e9b\u65e5\u5fd7\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code>server {<\/p>\n<p>    ...<\/p>\n<p>    access_log \/var\/log\/nginx\/access.log timed_combined;<\/p>\n<p>    ...<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728<code>server<\/code>\u5757\u4e2d\u7684<code>access_log<\/code>\u6307\u4ee4\u6307\u5b9a\u4e86\u65e5\u5fd7\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u4f7f\u7528\u4e86\u4e4b\u524d\u5b9a\u4e49\u7684<code>timed_combined<\/code>\u65e5\u5fd7\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f18\u5316fastcgi\u53c2\u6570<\/h3>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u53ef\u80fd\u8fd8\u9700\u8981\u786e\u4fddfastcgi\u53c2\u6570\u6b63\u786e\u914d\u7f6e\uff0c\u6765\u4fdd\u8bc1PHP\u54cd\u5e94\u65f6\u95f4\u6b63\u786e\u8bb0\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code>location ~ \\.php$ {<\/p>\n<p>    include fastcgi_params;<\/p>\n<p>    ...<\/p>\n<p>    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<\/p>\n<p>    fastcgi_pass php_upstream;<\/p>\n<p>    ...<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u914d\u7f6e\u786e\u4fdd\u4e86\u6240\u6709\u5bf9PHP\u6587\u4ef6\u7684\u8bf7\u6c42\u90fd\u901a\u8fc7fastcgi\u534f\u8bae\u8f6c\u53d1\u7ed9PHP\u5904\u7406\u3002\u8fd9\u91cc\uff0c<code>php_upstream<\/code>\u901a\u5e38\u6307\u5411\u4e00\u4e2aPHP-FPM\u7684\u76d1\u542c\u6c60\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5229\u7528\u7b2c\u4e09\u65b9\u6a21\u5757\u8fdb\u884c\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u66f4\u8be6\u7ec6\u7684\u6027\u80fd\u5206\u6790\uff0c\u53ef\u4ee5\u4f7f\u7528\u50cfOpenResty\u8fd9\u6837\u7684\u7b2c\u4e09\u65b9\u6a21\u5757\uff0c\u5b83\u57fa\u4e8eNGINX\u5f00\u53d1\uff0c\u80fd\u591f\u63d0\u4f9b\u66f4\u591a\u7684\u76d1\u63a7\u548c\u5206\u6790\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5206\u6790\u65e5\u5fd7<\/h3>\n<\/p>\n<p><p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u65e5\u5fd7\u6587\u4ef6\u5c31\u4f1a\u8bb0\u5f55\u4e0b\u6bcf\u4e2aPHP\u54cd\u5e94\u7684\u65f6\u95f4\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u65e5\u5fd7\u5206\u6790\u5de5\u5177\u5bf9\u5b83\u8fdb\u884c\u5206\u6790\uff0c\u627e\u51fa\u6f5c\u5728\u7684\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<\/p>\n<p><pre><code>192.168.1.1 - - [01\/Jan\/2023:00:00:01 +0000] &quot;GET \/index.php HTTP\/1.1&quot; 200 612 &quot;-&quot; <\/p>\n<p>&quot;Mozilla\/5.0 (Windows NT 10.0; Win64; x64)&quot; 0.123<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65e5\u5fd7\u6761\u76ee\u4e2d\uff0c<code>0.123<\/code>\u5c31\u662f\u5bf9<code>\/index.php<\/code>\u6587\u4ef6\u8bf7\u6c42\u7684\u54cd\u5e94\u65f6\u95f4\uff0c\u5355\u4f4d\u662f\u79d2\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u76d1\u63a7\u4e0e\u8c03\u4f18<\/h3>\n<\/p>\n<p><p>\u8bb0\u5f55\u4e0b\u54cd\u5e94\u65f6\u95f4\u540e\uff0c\u5bf9\u6027\u80fd\u76d1\u63a7\u7684\u91cd\u8981\u6027\uff0c\u4ee5\u53ca\u5982\u4f55\u6839\u636e\u8fd9\u4e9b\u6570\u636e\u8fdb\u884c\u7f51\u7ad9\u8c03\u4f18\u3002<\/p>\n<\/p>\n<p><pre><code># \u6027\u80fd\u76d1\u63a7<\/p>\n<p>\u76d1\u63a7PHP\u54cd\u5e94\u65f6\u95f4\u53ef\u4ee5\u53ca\u65f6\u53d1\u73b0\u6027\u80fd\u95ee\u9898\uff0c\u6bd4\u5982\u8fc7\u957f\u7684\u6570\u636e\u5e93\u67e5\u8be2\u6216\u975e\u6700\u4f18\u7684\u4ee3\u7801\u6267\u884c\u8def\u5f84\u3002<\/p>\n<h2><strong>\u7f51\u7ad9\u8c03\u4f18<\/strong><\/h2>\n<p>\u901a\u8fc7\u5206\u6790\u54cd\u5e94\u65f6\u95f4\uff0c\u53ef\u4ee5\u5224\u65ad\u51fa\u9700\u8981\u4f18\u5316\u7684\u5177\u4f53\u73af\u8282\uff0c\u4f8b\u5982\u4ee3\u7801\u4f18\u5316\u3001\u6570\u636e\u5e93\u7d22\u5f15\u4f18\u5316\u7b49\u3002<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0a\u5c31\u662f\u914d\u7f6eNGINX\u8bb0\u5f55PHP\u54cd\u5e94\u65f6\u95f4\u7684\u6b65\u9aa4\u3002<strong>\u901a\u8fc7\u5bf9NGINX\u65e5\u5fd7\u7684\u6b63\u786e\u914d\u7f6e\u548c\u5206\u6790\uff0c\u4f60\u53ef\u4ee5\u83b7\u5f97\u5b9d\u8d35\u7684\u6027\u80fd\u6570\u636e\uff0c\u8fd9\u4e9b\u6570\u636e\u5e2e\u52a9\u4f60\u8bca\u65ad\u548c\u89e3\u51b3\u7f51\u7ad9\u6027\u80fd\u95ee\u9898\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u6700\u7ec8\uff0cNGINX\u914d\u5408PHP-FPM\u7684\u6b63\u786e\u914d\u7f6e\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u4f9b\u7a33\u5b9a\u7684\u670d\u52a1\uff0c\u8fd8\u80fd\u8ba9\u4f60\u5177\u5907\u9488\u5bf9\u6027\u80fd\u8fdb\u884c\u7cbe\u7ec6\u5316\u76d1\u63a7\u548c\u8c03\u4f18\u7684\u80fd\u529b\uff0c\u786e\u4fdd\u7528\u6237\u83b7\u5f97\u5feb\u901f\u4e14\u4e00\u81f4\u7684\u8bbf\u95ee\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q: \u5982\u4f55\u5728nginx\u4e2d\u8bb0\u5f55PHP\u7684\u54cd\u5e94\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>A: \u5728nginx\u4e2d\u8bb0\u5f55PHP\u7684\u54cd\u5e94\u65f6\u95f4\u6709\u51e0\u79cd\u65b9\u6cd5\u3002\u9996\u5148\uff0c\u4f60\u53ef\u4ee5\u5728nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6307\u4ee4<code>log_format<\/code>\u6765\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u65e5\u5fd7\u683c\u5f0f\uff0c\u7136\u540e\u5728<code>access_log<\/code>\u6307\u4ee4\u4e2d\u4f7f\u7528\u8be5\u683c\u5f0f\u3002\u5728\u5b9a\u4e49\u65e5\u5fd7\u683c\u5f0f\u65f6\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>$request_time<\/code>\u53d8\u91cf\u6765\u83b7\u53d6\u670d\u52a1\u5668\u5904\u7406\u8bf7\u6c42\u6240\u82b1\u8d39\u7684\u65f6\u95f4\u3002\u8fd9\u6837\uff0c\u6bcf\u6b21\u8bbf\u95ee\u65f6\uff0cnginx\u5c31\u4f1a\u5c06\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\u8bb0\u5f55\u5230\u65e5\u5fd7\u4e2d\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u6a21\u5757\uff0c\u5982ngx_http_realip_module\u548cngx_http_stub_status_module\uff0c\u6765\u989d\u5916\u8bb0\u5f55PHP\u7684\u54cd\u5e94\u65f6\u95f4\u3002\u8fd9\u4e9b\u6a21\u5757\u53ef\u4ee5\u63d0\u4f9b\u66f4\u8be6\u7ec6\u7684\u7edf\u8ba1\u4fe1\u606f\uff0c\u5305\u62ec\u6bcf\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\u3001\u8bf7\u6c42\u7684\u72b6\u6001\u7801\u7b49\u3002\u901a\u8fc7\u5728nginx\u914d\u7f6e\u6587\u4ef6\u4e2d\u542f\u7528\u8fd9\u4e9b\u6a21\u5757\uff0c\u5e76\u6839\u636e\u6587\u6863\u7684\u6307\u5bfc\u8fdb\u884c\u914d\u7f6e\uff0c\u4f60\u5c31\u53ef\u4ee5\u83b7\u53d6\u66f4\u51c6\u786e\u7684PHP\u54cd\u5e94\u65f6\u95f4\u8bb0\u5f55\u3002<\/p>\n<p>\u6700\u540e\uff0c\u4f60\u8fd8\u53ef\u4ee5\u8003\u8651\u4f7f\u7528NGINX Plus\u7248\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u65e5\u5fd7\u8bb0\u5f55\u548c\u5206\u6790\u529f\u80fd\u3002NGINX Plus\u53ef\u4ee5\u8bb0\u5f55\u6bcf\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\uff0c\u5e76\u63d0\u4f9b\u5b9e\u65f6\u7edf\u8ba1\u548c\u5206\u6790\u62a5\u544a\uff0c\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u4e86\u89e3PHP\u811a\u672c\u7684\u54cd\u5e94\u65f6\u95f4\u548c\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<p><strong>Q: \u5982\u4f55\u5206\u6790nginx\u8bb0\u5f55\u7684PHP\u54cd\u5e94\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>A: \u5206\u6790nginx\u8bb0\u5f55\u7684PHP\u54cd\u5e94\u65f6\u95f4\u53ef\u4ee5\u6709\u51e0\u79cd\u65b9\u6cd5\u3002\u9996\u5148\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5982grep\u548cawk\uff0c\u5bf9nginx\u7684\u8bbf\u95ee\u65e5\u5fd7\u8fdb\u884c\u5206\u6790\u3002\u4f60\u53ef\u4ee5\u63d0\u53d6\u6bcf\u4e2a\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\uff0c\u8ba1\u7b97\u5e73\u5747\u54cd\u5e94\u65f6\u95f4\u3001\u6700\u5927\u54cd\u5e94\u65f6\u95f4\u7b49\u6307\u6807\uff0c\u5e76\u8fdb\u884c\u8d8b\u52bf\u5206\u6790\u548c\u6027\u80fd\u4f18\u5316\u51b3\u7b56\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u5982Elasticsearch\u3001Logstash\u548cKibana\uff08ELK\u5806\u6808\uff09\uff0c\u6765\u66f4\u65b9\u4fbf\u5730\u8fdb\u884cPHP\u54cd\u5e94\u65f6\u95f4\u7684\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002\u901a\u8fc7\u5c06nginx\u7684\u8bbf\u95ee\u65e5\u5fd7\u5bfc\u5165\u5230Elasticsearch\u4e2d\uff0c\u5e76\u4f7f\u7528Kibana\u8fdb\u884c\u67e5\u8be2\u548c\u53ef\u89c6\u5316\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u5404\u79cd\u56fe\u8868\u548c\u62a5\u544a\uff0c\u6bd4\u5982\u54cd\u5e94\u65f6\u95f4\u7684\u65f6\u5e8f\u56fe\u3001\u5206\u5e03\u56fe\u7b49\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5982\u524d\u6240\u8ff0\uff0c\u5982\u679c\u4f60\u4f7f\u7528NGINX Plus\u7248\uff0c\u90a3\u4e48\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7NGINX Plus\u7684\u5b9e\u65f6\u7edf\u8ba1\u548c\u5206\u6790\u529f\u80fd\u6765\u5206\u6790PHP\u7684\u54cd\u5e94\u65f6\u95f4\u3002NGINX Plus\u53ef\u4ee5\u63d0\u4f9b\u53ef\u89c6\u5316\u7684\u4eea\u8868\u76d8\u548c\u62a5\u544a\uff0c\u5e2e\u52a9\u4f60\u6df1\u5165\u4e86\u89e3PHP\u811a\u672c\u7684\u6027\u80fd\u8868\u73b0\uff0c\u5e76\u4f18\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<p><strong>Q: \u5982\u4f55\u901a\u8fc7nginx\u4f18\u5316PHP\u7684\u54cd\u5e94\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>A: \u4f18\u5316PHP\u7684\u54cd\u5e94\u65f6\u95f4\u53ef\u4ee5\u4ece\u591a\u4e2a\u65b9\u9762\u5165\u624b\u3002\u9996\u5148\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u5bf9PHP\u4ee3\u7801\u8fdb\u884c\u4f18\u5316\uff0c\u5305\u62ec\u4f7f\u7528\u7f13\u5b58\u673a\u5236\uff0c\u51cf\u5c11\u6570\u636e\u5e93\u67e5\u8be2\u6b21\u6570\uff0c\u4f18\u5316\u5faa\u73af\u7ed3\u6784\u7b49\u3002\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11PHP\u811a\u672c\u7684\u6267\u884c\u65f6\u95f4\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4f53\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574nginx\u7684\u914d\u7f6e\u6765\u4f18\u5316PHP\u7684\u54cd\u5e94\u65f6\u95f4\u3002\u4f8b\u5982\uff0c\u5408\u7406\u8bbe\u7f6enginx\u7684worker_processes\u548cworker_connections\u53c2\u6570\uff0c\u63d0\u9ad8nginx\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002\u53e6\u5916\uff0c\u4f60\u53ef\u4ee5\u542f\u7528nginx\u7684gzip\u538b\u7f29\u529f\u80fd\uff0c\u51cf\u5c11\u54cd\u5e94\u6570\u636e\u7684\u4f20\u8f93\u91cf\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u4f7f\u7528\u7f13\u5b58\u4e5f\u662f\u63d0\u5347PHP\u54cd\u5e94\u65f6\u95f4\u7684\u4e00\u79cd\u6709\u6548\u65b9\u5f0f\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6enginx\u7684proxy_cache\u6216fastcgi_cache\u6a21\u5757\uff0c\u5c06\u9759\u6001\u6587\u4ef6\u548c\u52a8\u6001\u9875\u9762\u7684\u54cd\u5e94\u7ed3\u679c\u7f13\u5b58\u8d77\u6765\uff0c\u51cf\u8f7bPHP\u7684\u8d1f\u8f7d\u538b\u529b\uff0c\u52a0\u5feb\u9875\u9762\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n<p>\u6700\u540e\uff0c\u901a\u8fc7\u4f18\u5316\u670d\u52a1\u5668\u7684\u786c\u4ef6\u914d\u7f6e\uff0c\u5982\u589e\u52a0\u5185\u5b58\u3001\u63d0\u5347\u78c1\u76d8\u8bfb\u5199\u901f\u5ea6\u7b49\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8PHP\u7684\u54cd\u5e94\u65f6\u95f4\u3002\u540c\u65f6\uff0c\u5408\u7406\u914d\u7f6e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u53c2\u6570\uff0c\u5982\u8bbe\u7f6e\u5408\u9002\u7684\u6587\u4ef6\u6253\u5f00\u9650\u5236\u3001TCP\u8fde\u63a5\u53c2\u6570\u7b49\uff0c\u4e5f\u6709\u52a9\u4e8e\u63d0\u5347\u6574\u4f53\u6027\u80fd\u548c\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728\u914d\u7f6eNGINX\u670d\u52a1\u5668\u65f6\uff0c\u8bb0\u5f55PHP\u54cd\u5e94\u65f6\u95f4\u662f\u8bc4\u4f30\u7f51\u7ad9\u6027\u80fd\u7684\u5173\u952e\u56e0\u7d20\u3002\u4e3a\u4e86\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff0c\u53ef\u4ee5\u5229\u7528NGINX\u7684\u65e5 [&hellip;]","protected":false},"author":3,"featured_media":181493,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/181487"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=181487"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/181487\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/181493"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=181487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=181487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=181487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}