{"id":1822,"date":"2026-03-03T09:53:03","date_gmt":"2026-03-03T01:53:03","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=1822"},"modified":"2026-03-03T09:53:03","modified_gmt":"2026-03-03T01:53:03","slug":"php%e6%8e%a5%e5%8f%a3%e8%af%b7%e6%b1%82%e8%b6%85%e6%97%b6%e5%ae%8c%e6%95%b4%e6%8e%92%e6%9f%a5%e4%b8%8e%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2026\/03\/03\/php%e6%8e%a5%e5%8f%a3%e8%af%b7%e6%b1%82%e8%b6%85%e6%97%b6%e5%ae%8c%e6%95%b4%e6%8e%92%e6%9f%a5%e4%b8%8e%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/","title":{"rendered":"PHP\u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6\u5b8c\u6574\u6392\u67e5\u4e0e\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n<p>PHP \u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6\uff0c\u4e00\u822c\u5206\u4e3a <strong>PHP \u6267\u884c\u8d85\u65f6\u3001Nginx\/Apache \u8d85\u65f6\u3001FastCGI \u8d85\u65f6\u3001\u6570\u636e\u5e93\u8d85\u65f6\u3001\u5916\u90e8\u63a5\u53e3\u8d85\u65f6<\/strong> \u4e94\u5927\u7c7b\u3002<\/p>\n\n\n\n<p>\u6211\u7ed9\u4f60\u4e00\u4efd <strong>\u4f01\u4e1a\u7ea7\u5b8c\u6574\u6392\u67e5\u6d41\u7a0b + \u89e3\u51b3\u65b9\u6848\u6e05\u5355<\/strong>\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u5728\u751f\u4ea7\u73af\u5883\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e00\u3001\u5148\u5224\u65ad\u662f\u54ea\u4e00\u5c42\u8d85\u65f6<\/h1>\n\n\n\n<p>\u4e0d\u540c\u62a5\u9519\u4ee3\u8868\u4e0d\u540c\u95ee\u9898\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u62a5\u9519\u4fe1\u606f<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>Maximum execution time exceeded<\/code><\/td><td>PHP\u6267\u884c\u8d85\u65f6<\/td><\/tr><tr><td><code>504 Gateway Time-out<\/code><\/td><td>Nginx\/\u53cd\u5411\u4ee3\u7406\u8d85\u65f6<\/td><\/tr><tr><td><code>upstream timed out<\/code><\/td><td>FastCGI \u8d85\u65f6<\/td><\/tr><tr><td><code>502 Bad Gateway<\/code><\/td><td>PHP-FPM\u6302\u4e86\u6216\u5d29\u4e86<\/td><\/tr><tr><td>\u9875\u9762\u4e00\u76f4\u8f6c\u5708\u65e0\u62a5\u9519<\/td><td>\u53ef\u80fd\u6570\u636e\u5e93\u5361\u4f4f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e8c\u3001PHP \u5c42\u8d85\u65f6\u6392\u67e5<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1\ufe0f\u20e3 max_execution_time<\/h2>\n\n\n\n<p>php.ini<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmax_execution_time = 30\n\n<\/pre><\/div>\n\n\n<p>\u52a8\u6001\u8bbe\u7f6e\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nset_time_limit(0); \/\/ \u6c38\u4e0d\u8d85\u65f6\n\n<\/pre><\/div>\n\n\n<p>\u67e5\u770b\u5f53\u524d\u503c\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphpinfo();\n\n<\/pre><\/div>\n\n\n<p>\u5982\u679c\u4f60\u7528\u7684\u662f CLI\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nphp -i | grep max_execution_time\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2\ufe0f\u20e3 memory_limit<\/h2>\n\n\n\n<p>\u6709\u65f6\u4e0d\u662f\u65f6\u95f4\u8d85\u65f6\uff0c\u800c\u662f\u5185\u5b58\u7206\u4e86\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmemory_limit = 128M\n\n<\/pre><\/div>\n\n\n<p>\u4e34\u65f6\u4fee\u6539\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nini_set(&#039;memory_limit&#039;,&#039;512M&#039;);\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e09\u3001Nginx \u8d85\u65f6\u914d\u7f6e<\/h1>\n\n\n\n<p>\u6587\u4ef6\u4f4d\u7f6e\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/etc\/nginx\/nginx.conf\n\u6216\n\/etc\/nginx\/conf.d\/*.conf\n\n<\/pre><\/div>\n\n\n<p>\u5173\u952e\u53c2\u6570\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nproxy_connect_timeout 300;\nproxy_send_timeout 300;\nproxy_read_timeout 300;\nsend_timeout 300;\n\n<\/pre><\/div>\n\n\n<p>\u5982\u679c\u662f FastCGI\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfastcgi_connect_timeout 300;\nfastcgi_send_timeout 300;\nfastcgi_read_timeout 300;\n\n<\/pre><\/div>\n\n\n<p>\u4fee\u6539\u540e\u91cd\u542f\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnginx -t\nsystemctl restart nginx\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u56db\u3001PHP-FPM \u8d85\u65f6<\/h1>\n\n\n\n<p>\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/etc\/php\/8.x\/fpm\/pool.d\/www.conf\n\n<\/pre><\/div>\n\n\n<p>\u5173\u952e\u53c2\u6570\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrequest_terminate_timeout = 300\n\n<\/pre><\/div>\n\n\n<p>\u9ed8\u8ba4\u662f 0\uff08\u4e0d\u9650\u5236\uff09\uff0c\u4f46\u5f88\u591a\u670d\u52a1\u5668\u88ab\u6539\u8fc7\u3002<\/p>\n\n\n\n<p>\u91cd\u542f\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsystemctl restart php8.x-fpm\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e94\u3001\u6570\u636e\u5e93\u5bfc\u81f4\u7684\u5047\u8d85\u65f6\uff08\u6700\u5e38\u89c1\uff09<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 \u6162SQL<\/h3>\n\n\n\n<p>\u6267\u884c\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSHOW PROCESSLIST;\n\n<\/pre><\/div>\n\n\n<p>\u67e5\u770b\u662f\u5426\u6709\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSending data\nLocked\nWaiting for table metadata lock\n\n<\/pre><\/div>\n\n\n<p>\u5f00\u542f\u6162\u67e5\u8be2\u65e5\u5fd7\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nslow_query_log = 1\nlong_query_time = 1\n\n<\/pre><\/div>\n\n\n<p>\u4f18\u5316\u7d22\u5f15\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nEXPLAIN SELECT ...\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 \u6b7b\u9501<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSHOW ENGINE INNODB STATUS;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u516d\u3001\u5916\u90e8\u63a5\u53e3\u8d85\u65f6\uff08\u7b2c\u4e09\u65b9API\uff09<\/h1>\n\n\n\n<p>\u5982\u679c\u4f60\u5728\u8c03\u7528\u5916\u90e8\u63a5\u53e3\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncurl_setopt($ch, CURLOPT_TIMEOUT, 10);\ncurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\n\n<\/pre><\/div>\n\n\n<p>\u5f88\u591a\u4eba\u5fd8\u8bb0\u8bbe\u7f6e\u8d85\u65f6\u65f6\u95f4\uff0c\u5bfc\u81f4\u4e00\u76f4\u5361\u4f4f\u3002<\/p>\n\n\n\n<p>\u5efa\u8bae\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncurl_setopt($ch, CURLOPT_TIMEOUT, 15);\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e03\u3001\u6392\u67e5\u6b65\u9aa4\uff08\u6807\u51c6\u6d41\u7a0b\uff09<\/h1>\n\n\n\n<p>\u6309\u987a\u5e8f\u6267\u884c\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u770b\u6d4f\u89c8\u5668\u62a5\u9519\u7c7b\u578b<\/li>\n\n\n\n<li>\u67e5\u770b Nginx error.log<code>\/var\/log\/nginx\/error.log<\/code><\/li>\n\n\n\n<li>\u67e5\u770b PHP-FPM log<code>\/var\/log\/php8.x-fpm.log<\/code><\/li>\n\n\n\n<li>\u67e5\u770b MySQL \u8fdb\u7a0b<\/li>\n\n\n\n<li>\u770b\u670d\u52a1\u5668 CPU \/ \u5185\u5b58<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u516b\u3001\u9ad8\u5e76\u53d1\u5bfc\u81f4\u7684\u8d85\u65f6<\/h1>\n\n\n\n<p>\u5982\u679c\u662f\u63a5\u53e3\u5e76\u53d1\u5927\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1\ufe0f\u20e3 \u67e5\u770b PHP-FPM \u8fdb\u7a0b\u6570<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nps aux | grep php-fpm\n\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">2\ufe0f\u20e3 \u67e5\u770b\u914d\u7f6e<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npm.max_children\npm.start_servers\npm.max_spare_servers\n\n<\/pre><\/div>\n\n\n<p>\u5982\u679c pm.max_children \u592a\u5c0f\uff0c\u4f1a\u6392\u961f\u3002<\/p>\n\n\n\n<p>\u5efa\u8bae\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npm.max_children = 50\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e5d\u3001\u771f\u6b63\u7684\u89e3\u51b3\u65b9\u6848\uff08\u67b6\u6784\u7ea7\uff09<\/h1>\n\n\n\n<p>\u5982\u679c\u63a5\u53e3\u6267\u884c\u65f6\u95f4\u8d85\u8fc7 5 \u79d2\uff0c\u8bf4\u660e\u8bbe\u8ba1\u6709\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u63a8\u8350\u65b9\u6848\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 1. \u5f02\u6b65\u961f\u5217\uff08\u5f3a\u70c8\u63a8\u8350\uff09<\/h3>\n\n\n\n<p>\u7528\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redis + \u961f\u5217<\/li>\n\n\n\n<li>RabbitMQ<\/li>\n\n\n\n<li>Swoole<\/li>\n<\/ul>\n\n\n\n<p>\u6d41\u7a0b\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\u7528\u6237\u8bf7\u6c42 \u2192 \u7acb\u5373\u8fd4\u56de \u2192 \u540e\u53f0\u6162\u6162\u6267\u884c\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 2. \u7f13\u5b58<\/h3>\n\n\n\n<p>\u4f7f\u7528\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Redis<\/li>\n\n\n\n<li>Memcached<\/li>\n<\/ul>\n\n\n\n<p>\u6bd4\u5982\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$data = $redis-&gt;get(&#039;api_cache&#039;);\n\nif(!$data){\n    $data = heavy_query();\n    $redis-&gt;setex(&#039;api_cache&#039;,300,$data);\n}\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 3. \u5206\u9875\u67e5\u8be2<\/h3>\n\n\n\n<p>\u4e0d\u8981\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSELECT * FROM big_table;\n\n<\/pre><\/div>\n\n\n<p>\u8981\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSELECT * FROM big_table LIMIT 20;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u5341\u3001\u670d\u52a1\u5668\u6027\u80fd\u6392\u67e5\u547d\u4ee4<\/h1>\n\n\n\n<p>CPU\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ntop\nhtop\n\n<\/pre><\/div>\n\n\n<p>\u5185\u5b58\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfree -m\n\n<\/pre><\/div>\n\n\n<p>IO\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\niostat -x 1\n\n<\/pre><\/div>\n\n\n<p>\u8fde\u63a5\u6570\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nnetstat -an | grep :80 | wc -l\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u5341\u4e00\u3001\u5178\u578b\u771f\u5b9e\u6848\u4f8b\u5206\u6790<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u6848\u4f8b1\uff1a504<\/h2>\n\n\n\n<p>\u539f\u56e0\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfastcgi_read_timeout 60\n\n<\/pre><\/div>\n\n\n<p>\u63a5\u53e3\u6267\u884c 65 \u79d2 \u2192 Nginx \u6740\u6389<\/p>\n\n\n\n<p>\u89e3\u51b3\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfastcgi_read_timeout 300;\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u6848\u4f8b2\uff1a\u9875\u9762\u5361\u6b7b\u65e0\u62a5\u9519<\/h2>\n\n\n\n<p>\u539f\u56e0\uff1a<\/p>\n\n\n\n<p>\u6570\u636e\u5e93\u672a\u52a0\u7d22\u5f15\uff0c\u67e5\u8be2 800\u4e07\u6570\u636e<\/p>\n\n\n\n<p>\u89e3\u51b3\uff1a<\/p>\n\n\n\n<p>\u6dfb\u52a0\u7d22\u5f15 + \u5206\u9875<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u6848\u4f8b3\uff1a\u9ad8\u5cf0\u671f\u8d85\u65f6<\/h2>\n\n\n\n<p>\u539f\u56e0\uff1a<\/p>\n\n\n\n<p>pm.max_children=5<\/p>\n\n\n\n<p>\u89e3\u51b3\uff1a<\/p>\n\n\n\n<p>\u8c03\u5230 50<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u5341\u4e8c\u3001\u7ec8\u6781\u6392\u67e5\u601d\u8def<\/h1>\n\n\n\n<p>\u8d85\u65f6\u672c\u8d28\u53ea\u6709 3 \u79cd\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6267\u884c\u592a\u6162<\/li>\n\n\n\n<li>\u5e76\u53d1\u592a\u9ad8<\/li>\n\n\n\n<li>\u914d\u7f6e\u592a\u5c0f<\/li>\n<\/ol>\n\n\n\n<p>\u4f60\u53ea\u8981\u5224\u65ad\u662f\u54ea\u4e2a\u7ef4\u5ea6\u5c31\u80fd\u89e3\u51b3\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u53ef\u4ee5\u7ed9\u4f60<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udd25 \u4e00\u4efd\u751f\u4ea7\u73af\u5883\u6807\u51c6 Nginx + PHP-FPM \u4f18\u5316\u914d\u7f6e<\/li>\n\n\n\n<li>\ud83d\udd25 \u4e00\u4efd\u9ad8\u5e76\u53d1\u63a5\u53e3\u67b6\u6784\u56fe<\/li>\n\n\n\n<li>\ud83d\udd25 \u4e00\u4efd\u6162SQL\u4f18\u5316\u5b9e\u6218\u6559\u7a0b<\/li>\n\n\n\n<li>\ud83d\udd25 \u4e00\u5957\u4f01\u4e1a\u7ea7\u63a5\u53e3\u6027\u80fd\u4f18\u5316\u65b9\u6848<\/li>\n<\/ul>\n\n\n\n<p>\u4f60\u73b0\u5728\u7684\u73af\u5883\u662f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Nginx \u8fd8\u662f Apache\uff1f<\/li>\n\n\n\n<li>PHP \u7248\u672c\uff1f<\/li>\n\n\n\n<li>\u662f\u63a5\u53e3\u5076\u53d1\u8d85\u65f6\u8fd8\u662f\u5168\u90e8\u8d85\u65f6\uff1f<\/li>\n<\/ul>\n\n\n\n<p>\u544a\u8bc9\u6211\u5177\u4f53\u73af\u5883\uff0c\u6211\u7ed9\u4f60\u9488\u5bf9\u6027\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u63a5\u53e3\u8bf7\u6c42\u8d85\u65f6\uff0c\u4e00\u822c\u5206\u4e3a PHP \u6267\u884c\u8d85\u65f6\u3001Nginx\/Apache \u8d85\u65f6&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2026\/03\/03\/php%e6%8e%a5%e5%8f%a3%e8%af%b7%e6%b1%82%e8%b6%85%e6%97%b6%e5%ae%8c%e6%95%b4%e6%8e%92%e6%9f%a5%e4%b8%8e%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1822","post","type-post","status-publish","format-standard","hentry","category-php"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=1822"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1822\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1822\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=1822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=1822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=1822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}