{"id":139353,"date":"2019-03-20T08:13:48","date_gmt":"2019-03-20T00:13:48","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=139353"},"modified":"2019-03-12T09:14:53","modified_gmt":"2019-03-12T01:14:53","slug":"lnmp-concurrent-resources","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lnmp-concurrent-resources.html","title":{"rendered":"LNMP\u7684\u5e76\u53d1\u914d\u7f6e\u548c\u8d44\u6e90\u5206\u914d"},"content":{"rendered":"

PHP\u7a0b\u5e8f\u6027\u80fd\u5982\u4f55\uff1f\u7a0b\u5e8f\u7684\u5e76\u53d1\u53ef\u4ee5\u8fbe\u5230\u591a\u5c11\uff1f\u7a0b\u5e8f\u7684\u74f6\u9888\u5728\u54ea\u513f\uff1f\u4e3a\u4e86\u6ee1\u8db3\u4e1a\u52a1\u9700\u6c42\u5e94\u8be5\u8d2d\u4e70\u591a\u5c11\u53f0\u670d\u52a1\u5668\uff1f\u8d1f\u8f7d\u5747\u8861\u4e2dphp\u5e94\u7528\u670d\u52a1\u5668\u9700\u8981\u591a\u5c11\u53f0\uff1f<\/p>\n

LNMP\u4e2d\u7684N\u662fnginx\u5145\u5f53Web Server<\/strong><\/span><\/div>\n

\u5185\u5bb9\u7684\u5206\u53d1\u8005\uff0c\u4f1a\u5728\u6587\u4ef6\u7cfb\u7edf\u627e\u5230\u76f8\u5e94\u7684\u6587\u4ef6\uff0c\u5c31\u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668\uff0c\u5982\uff1anginx\u3002\u5982\u679c\u662f\u9759\u6001\u7684\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u8fd4\u56de\uff0c\u4f46\u662f\u5982\u679c\u662findex.php\u9700\u8981\u89e3\u6790\u5e76\u6267\u884c\u7684\u811a\u672c\u6587\u4ef6\u65f6\uff0cWeb Server\u5c31\u65e0\u529b\u4e86\uff0c\u9700\u8981\u5c06\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u76f8\u5e94\u7684\u811a\u672c\u8bed\u8a00\u7684\u89e3\u6790\u5668\u6765\u89e3\u91ca\u5e76\u6267\u884c\uff0c\u6700\u7ec8\u5c06\u7a0b\u5e8f\u7684\u6267\u884c\u7ed3\u679c\uff0c\u8fd4\u56de\u7ed9Web Server\uff0c\u518d\u8fd4\u56de\u7ed9\u6d4f\u89c8\u5668\u3002<\/p>\n

LNMP\u4e2d\u7684P\u662fphp\u5145\u5f53\u540e\u7aef\u7684\u903b\u8f91\u5904\u7406\u7a0b\u5e8f<\/strong><\/span><\/div>\n

\u90a3\u4e48php\u4e0enginx\u7684\u5e38\u89c4\u534f\u4f5c\u65b9\u5f0f\u662f\u5982\u4f55\u7684\u5462\uff1f\u9700\u8981\u6211\u4eec\u660e\u786e\u51e0\u4e2a\u6982\u5ff5<\/p>\n

cgi<\/strong><\/span><\/div>\n

\u901a\u7528\u7f51\u5173\u63a5\u53e3\uff0c\u662fHTTP\u534f\u8bae\u4e2d\u63cf\u8ff0\u7684\uff0cWeb Server\u4e0e\u540e\u7aef\u5904\u7406\u7a0b\u5e8f\u8fdb\u7a0b\u95f4\u901a\u4fe1\u7684\u534f\u8bae<\/p>\n

php-cgi<\/strong><\/span><\/div>\n

php\u5b9e\u73b0\u4e86cgi\u534f\u8bae\uff0c\u4f7f\u5f97web server\u4e0ephp\u5171\u540c\u5b8c\u6210\u4e00\u4e2a\u52a8\u6001\u7f51\u9875\u7684\u8bf7\u6c42\u54cd\u5e94<\/p>\n

fastcgi<\/strong><\/span><\/div>\n

\u662f\u4e3a\u4e86\u89e3\u51b3cgi\u6027\u80fd\u95ee\u9898\uff0c\u800c\u89c4\u8303\u7684\u53e6\u5916\u4e00\u79cd\u534f\u8bae\uff0c\u4e3a\u4ec0\u4e48\u8bf4\u89e3\u51b3cgi\u6027\u80fd\u95ee\u9898\uff0c\u56e0\u4e3a\u5728\u9762\u5bf9\u5404\u5927\u4e2d\u578b\u7f51\u7ad9\u7684\u4e1a\u52a1\u9700\u6c42\u4e2d\uff0ccgi\u7a0b\u5e8f\u8868\u73b0\u5f97\u8d8a\u6765\u8d8a\u65e0\u529b\uff0c\u56e0\u4e3acgi\u7a0b\u5e8f\u5728\u6bcf\u6b21\u63a5\u6536\u5230\u8bf7\u6c42\u65f6\u90fd\u9700\u8981\u542f\u52a8\u65b0\u7684\u8fdb\u7a0b\uff0c\u5e76\u521d\u59cb\u5316\u73af\u5883\uff0c\u7136\u540e\u6267\u884c\u7a0b\u5e8f\uff0c\u5177\u4f53\u7684\u534f\u8bae\u5185\u5bb9\uff0c\u5728\u6b64\u4e0d\u5f15\u8ff0\u3002<\/p>\n

php-fpm<\/strong><\/span><\/div>\n

\u5b9e\u73b0\u4e86fastcgi\u534f\u8bae\uff0c\u662fphp-cgi\u7684\u8fdb\u7a0b\u7ba1\u7406\u5668\uff0c\u89e3\u51b3\u9ad8\u5e76\u53d1\u7f51\u7ad9\u7684\u6027\u80fd\u95ee\u9898\u3002<\/p>\n

\u5728\u6700\u7ec8\u56de\u7b54LNMP\u7684\u5e76\u53d1\u8003\u8651\u4e0e\u8d44\u6e90\u5206\u914d\u8fd8\u9700\u8981\u660e\u786e\u7684\u51e0\u4e2a\u6982\u5ff5<\/p>\n

\u5e76\u53d1<\/strong><\/span><\/div>\n

\u4e00\u822c\u7531\u5355\u4f4d\u5185\u5b8c\u6210\u7684\u8bf7\u6c42\u6570\u6765\u8861\u91cf\uff0c\u5982\uff0c\u6bcf\u79d2\u4e8b\u52a1\u6570\uff08TPS\uff09\uff0c\u6bcf\u79d2HTTP\u8bf7\u6c42\u6570\uff08HPS\uff09\uff0c\u6bcf\u79d2\u67e5\u8be2\u6570\uff08QPS\uff09\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u8bf4PHP\u7684\u5e76\u53d1\uff0c\u90fd\u662f\u6307\u4e00\u79d2\u5185PHP\u5b8c\u6210\u7684\u52a8\u6001\u8bf7\u6c42\u7684\u6b21\u6570\u3002\u5982\u67d0\u7f51\u7ad9\u9ad8\u5cf0\u671f\u7684\u52a8\u6001\u8bf7\u6c42\u5e76\u53d1\u4e3a5000\u6bcf\u79d2\uff0c\u8fd9\u4e2a\u6570\u5b57\u4e0d\u7b97\u592a\u9ad8\uff0c\u4f46\u4e5f\u4e0d\u4f4e\u3002\u4e00\u822c\u65e5\u6d3b\u8dc3\u7528\u6237\u6570\u57281000\u4e07-5000\u4e07\u7684\u7f51\u7ad9\u5e94\u7528\u624d\u80fd\u8fbe\u5230\u8fd9\u4e2a\u7ea7\u522b\u3002<\/p>\n

\u6027\u80fd<\/strong><\/span><\/div>\n

\u4e00\u822c\u662f\u6307\u5e94\u7528\u7a0b\u5e8f\u7684\u5904\u7406\u901f\u5ea6\uff0c\u5982\u679cphp\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u6253\u5f00\u4e00\u4e2a\u9875\u9762\uff08\u6267\u884c\u4e00\u4e2a\u811a\u672c\u7a0b\u5e8f\uff09\u901a\u5e38\u9700\u8981\u572850-100ms\u5b8c\u6210\uff0c\u8fd9\u5bf9\u7a0b\u5e8f\u7684\u6027\u80fd\u8981\u6c42\u8fd8\u662f\u6bd4\u8f83\u9ad8\u7684\u3002\u4f46\u662f\u8fd9\u8fd8\u4ec5\u4ec5\u53ea\u662f\u7a0b\u5e8f\u5904\u7406\uff0cphp\u5904\u7406\u5b8c\u6210\u4e4b\u540e\uff0c\u8fd8\u8981\u4ea4\u7ed9web server\uff0cweb server\u518d\u5c06\u6570\u636e\u8fd4\u56de\u6d4f\u89c8\u5668\uff0c\u8fd9\u4e2d\u95f4\u4f1a\u6709\u4e00\u4e2a\u7f51\u7edc\u5ef6\u8fdf\uff0c\u901a\u5e38\u7f51\u7edc\u6b63\u5e38\u7684\u60c5\u51b5\u4e0b\uff0c\u9700\u8981\u5927\u7ea6100ms\uff0c\u6700\u7ec8\u4e00\u4e2a\u52a8\u6001\u7f51\u9875\u7684\u8bf7\u6c42\u5927\u7ea6200ms\uff08\u7406\u60f3\u7684\u60c5\u51b5\u4e0b\uff09\u53ef\u4ee5\u5230\u8fbe\u7528\u6237\u6d4f\u89c8\u5668\u7aef\uff08\u4ec5\u4ec5\u662f\u4e00\u4e2ahtml\u7ed3\u6784\uff09\u3002<\/p>\n

\u8d44\u6e90\u5206\u914d<\/strong><\/div>\n
php-fpm\u8fdb\u7a0b\u6570<\/strong><\/span><\/div>\n

\u6309\u7167\u4e0a\u9762\u7684\u63cf\u8ff0\uff0c\u5e76\u53d1\u4e3a5000\u6bcf\u79d2\uff0c\u6bcf\u4e2a\u8bf7\u6c42\u5b8c\u6210\u5927\u7ea6200ms\uff08\u5177\u4f53\u9875\u9762\u8981\u5177\u4f53\u5206\u6790\uff0c\u8fd9\u91cc\u53ea\u662f\u4e00\u4e2a\u7406\u60f3\u503c\uff09\uff0c\u5982\u679c\u53ea\u67095\u53f0PHP\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u6bcf\u53f0\u673a\u5668\u5e73\u5747\u4e3a\u5e76\u53d11000\u6bcf\u79d2\uff0c\u5982\u679c\u662f\u4f7f\u7528nginx+php-fpm\u7684\u67b6\u6784\uff0cphp-fpm\u7684php-cgi\u8fdb\u7a0b\u7ba1\u7406\u5668\u7684\u914d\u7f6e\u5e94\u8be5\u5982\u4f55\u5462\uff1f\u6211\u8ba1\u7b97\u7684\u7ed3\u679c\u4e3a\uff08\u5177\u4f53\u7684\u914d\u7f6e\u9879\u8bf4\u660e\u5728\u540e\u6587\uff09\uff1a
\n pm=static
\n pm.max_children=100
\n \u4e0a\u9762\u7684100\u662f\u5982\u4f55\u5f97\u6765\u7684\uff0c\u7531\u4e8e\u673a\u5668\u5e73\u5747\u5e76\u53d1\u4e3a1000\u6bcf\u79d2\uff0c\u6bcf\u4e2a\u52a8\u6001\u8bf7\u6c42\u7684\u5904\u7406\u65f6\u95f4\u4e3a100ms\uff0c\u4e5f\u5c31\u662f\u8bf41\u4e2aphp-fpm\u7684worker\u5904\u7406\u8fdb\u7a0b\u57281\u79d2\u5185\u53ef\u4ee5\u5904\u740610\u4e2a\u8bf7\u6c42\uff0c100\u4e2aphp-fpm\u7684worker\u5904\u7406\u8fdb\u7a0b\uff0c\u5c31\u53ef\u4ee5\u5904\u74061000\u4e2a\u8bf7\u6c42\u3002
\n \u5f53\u7136\u9700\u8981\u7ed3\u5408\u670d\u52a1\u5668\u786c\u4ef6\u8d44\u6e90\u6765\u8fdb\u884c\u914d\u7f6e\uff0c\u5982\u679c\u914d\u7f6e\u4e0d\u5f53\uff0c\u5f88\u5bb9\u6613\u5728\u8bf7\u6c42\u9ad8\u5cf0\u671f\u6216\u8005\u6d41\u91cf\u731b\u589e\u5bfc\u81f4\u670d\u52a1\u5668\u5b95\u673a\u3002<\/p>\n

\u7f51\u7edc\u5e26\u5bbd<\/strong><\/span><\/div>\n

\u7f51\u7edc\u5e26\u5bbd\u4e5f\u4f1a\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u56e0\u7d20\uff0c\u5982\u679c\u4f60\u7684\u670d\u52a1\u5904\u7406\u5f88\u5f3a\uff0c\u4f46\u662f\u7528\u6237\u7684\u8bf7\u6c42\u548c\u54cd\u5e94\u4e0d\u80fd\u53ca\u65f6\u5230\u8fbe\u4e5f\u662f\u767d\u5fd9\u6d3b\uff0c\u8fd9\u4e2a\u53c2\u6570\u5982\u4f55\u8ba1\u7b97\u5462\uff1f
\n \u5e76\u53d15000\u6bcf\u79d2\uff0c\u6bcf\u4e2a\u8bf7\u6c42\u7684\u8f93\u51fa\u4e3a20K\uff0c\u52195000x20K=100000K=100M
\n \u8fd9\u5c31\u8981\u6c42\u4f60\u7684\u516c\u7f51\u8d1f\u8f7d\u5747\u8861\u5668\u5916\u7f51\u5e26\u5bbd\u81f3\u5c11\u8981\u8fbe\u5230100M<\/p>\n

\u5185\u5b58<\/strong><\/span><\/div>\n

\u4e0a\u8ff0\u4e2d100\u4e2aphp-fpm\u7684worker\u5904\u7406\u8fdb\u7a0b\uff0c\u7406\u8bba\u4e0a\u5982\u679c\u670d\u52a1\u5668\u53ea\u8fd0\u884cphp-fpm\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u5c06\u670d\u52a1\u5668\u5185\u5b58\u7684\u4e00\u534a\u5206\u914d\u7ed9php-fpm\uff0c\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba4\u4e3a\u4e00\u4e2aphp-fpm\u7684worker\u5904\u7406\u8fdb\u7a0b\u5360\u7528\u5185\u5b5820M\uff0c\u90a3\u4e48100x20M=2G\uff0c\u4e5f\u5c31\u662f\u8bf4\u660e\u670d\u52a1\u5668\u7684\u5185\u5b58\u5927\u7ea6\u4e3a4G<\/p>\n

CPU<\/strong><\/span><\/div>\n

\u7531\u4e8ephp-fpm\u662f\u4e00\u4e2a\u591a\u8fdb\u7a0b\u7684\u6a21\u578b\u5e94\u7528\uff0cCPU\u8fdb\u7a0b\u8c03\u5ea6\u6d88\u8017\u4e5f\u662f\u5f88\u5927\u7684\uff0c\u5e76\u4e14PHP\u5e94\u7528\u7a0b\u5e8f\u6709\u95ee\u9898\u4e5f\u4f1a\u5bfc\u81f4CPU\u5360\u7528\u7387\u9ad8\uff0c\u8fd9\u5c31\u6ca1\u6709\u91cf\u5316\u7684\u6307\u6807\uff0c\u9700\u8981\u5177\u4f53\u60c5\u51b5\u5177\u4f53\u5206\u6790\u4e86\u3002\u4f46\u662f\u6709\u4e00\u4e2a\u5c0f\u5efa\u8bae\uff0c\u53ef\u4ee5\u90e8\u7f72\u4e00\u4e2acrontab\u6bcf\u9694\u4e00\u5206\u949f\u68c0\u6d4bcpu\u5360\u7528\u7387\u8d85\u8fc7\u591a\u5c11\u5c31kill\u6389\u76f8\u5e94\u7684php-fpm\u7684worker\u5904\u7406\u8fdb\u7a0b\u3002<\/p>\n

nginx\u4e0ephp-fpm\u4f7f\u7528unix\u57df\u5957\u63a5\u5b57\u4ee3\u66fftcp socke\u8fdb\u884c\u901a\u4fe1 <\/strong><\/span><\/div>\n

\u8fd9\u4e2a\u914d\u7f6e\u633a\u5173\u952e\u7684\uff0c\u7eafecho\u7684ab\u6d4b\u8bd5\uff0c\u91c7\u7528unix\u57df\u5957\u63a5\u5b57\u6bcf\u79d2\u8bf7\u6c42\u6570\u63d0\u534710%-20%
\n \u5373nginx\u4e2d\u914d\u7f6e\uff1a<\/p>\n

\r\n    fastcgi_pass unix:\/data\/server\/var\/php\/php-fpm.sock;\r\n    php-fpm.conf\u4e2d\u914d\u7f6e\uff1a\r\n    listen = \/data\/server\/var\/php\/php-fpm.sock\r\n<\/pre>\n

\u6700\u540e\u9047\u5230\u5f88\u591a\u540c\u5b66\u5bf9php-fpm\u7684\u8fdb\u7a0b\u7ba1\u7406\u5668\u7684\u6838\u5fc3\u914d\u7f6e\u4e0d\u592a\u4e86\u89e3\uff0c\u4e0b\u9762\u662f\u6211\u7ffb\u8bd1\u7684\u914d\u7f6e\u8bf4\u660e\uff1a<\/p>\n

\u9996\u5148php-fpm\u76f8\u5173\u7684\u914d\u7f6e\u9879\u6709<\/strong><\/span><\/div>\n
\r\n\u8fdb\u7a0b\u7ba1\u7406\u5668\u4ee5\u63a7\u5236\u5b50\u8fdb\u7a0b\u7684\u6570\u91cf\uff0c\u53ef\u80fd\u7684\u503c\u6709\r\nstatic \u4e00\u4e2a\u56fa\u5b9a\u7684\u503c\uff0c\u7531pm.max_children\u6307\u5b9a\r\ndynamic \u52a8\u6001\u7684\uff08\u5de5\u4f5c\u65b9\u5f0f\u548cApache\u7684prefork\u6a21\u5f0f\u4e00\u81f4\uff09\uff0c\u4f46\u662f\u4fdd\u6301\u81f3\u5c11\u4e00\u4e2a\uff0c\u7531\r\npm.max_children \u5728\u540c\u4e00\u65f6\u95f4\u6700\u5927\u7684\u8fdb\u7a0b\u6570\r\npm.start_servers php-fpm\u542f\u52a8\u65f6\u5f00\u542f\u7684\u7b49\u5f85\u8bf7\u6c42\u5230\u6765\u7684\u8fdb\u7a0b\u6570\r\npm.min_spare_servers \u5728\u7a7a\u95f2\u72b6\u6001\u4e0b\uff0c\u8fd0\u884c\u7684\u6700\u5c0f\u8fdb\u7a0b\u6570\uff0c\u5982\u679c\u5c0f\u4e8e\u6b64\u503c\uff0c\u4f1a\u521b\u5efa\u65b0\u7684\u8fdb\u7a0b\r\npm.max_spare_servers \u5728\u7a7a\u95f2\u72b6\u6001\u4e0b\uff0c\u8fd0\u884c\u7684\u6700\u5927\u8fdb\u7a0b\u6570\uff0c\u5982\u679c\u5927\u4e8e\u6b64\u503c\uff0c\u4f1akill\u90e8\u5206\u8fdb\u7a0b\r\nondemand \u542f\u52a8\u65f6\u4e0d\u4f1a\u521b\u5efa\u8fdb\u7a0b\uff0c\u5f53\u8bf7\u6c42\u8fbe\u5230\u65f6\u521b\u5efa\u5b50\u8fdb\u7a0b\u5904\u7406\u8bf7\u6c42\r\npm.max_children \u5728\u540c\u4e00\u65f6\u95f4\u6700\u5927\u7684\u8fdb\u7a0b\u6570\r\npm.process_idle_timeout \u7a7a\u95f2\u591a\u5c11\u79d2\u4e4b\u540e\u8fdb\u7a0b\u4f1a\u88abkill\r\npm = dynamic\r\n\r\n    pm.max_children\r\n\r\n\u5728\u540c\u4e00\u65f6\u95f4\u6700\u5927\u7684\u8fdb\u7a0b\u6570\r\npm.max_children = 120\r\n\r\n    pm.start_servers\r\n\r\nphp-fpm\u542f\u52a8\u65f6\u5f00\u542f\u7684\u7b49\u5f85\u8bf7\u6c42\u5230\u6765\u7684\u8fdb\u7a0b\u6570\uff0c\u9ed8\u8ba4\u503c\u4e3a\uff1amin_spare_servers + (max_spare_servers \u2013 min_spare_servers) \/ 2\r\npm.start_servers = 80\r\n\r\n    pm.min_spare_servers\r\n\r\n\u5728\u7a7a\u95f2\u72b6\u6001\u4e0b\uff0c\u8fd0\u884c\u7684\u6700\u5c0f\u8fdb\u7a0b\u6570\uff0c\u5982\u679c\u5c0f\u4e8e\u6b64\u503c\uff0c\u4f1a\u521b\u5efa\u65b0\u7684\u8fdb\u7a0b\r\npm.min_spare_servers = 60\r\n\r\n    pm.max_spare_servers\r\n\r\n\u5728\u7a7a\u95f2\u72b6\u6001\u4e0b\uff0c\u8fd0\u884c\u7684\u6700\u5927\u8fdb\u7a0b\u6570\uff0c\u5982\u679c\u5927\u4e8e\u6b64\u503c\uff0c\u4f1akill\u90e8\u5206\u8fdb\u7a0b\r\npm.max_spare_servers = 120\r\n\r\n    pm.process_idle_timeout\r\n\r\n\u7a7a\u95f2\u591a\u5c11\u79d2\u4e4b\u540e\u8fdb\u7a0b\u4f1a\u88abkill\uff0c\u9ed8\u8ba4\u4e3a10s\r\npm.process_idle_timeout = 10s\r\n\r\n    pm.max_requests\r\n\r\n\u6bcf\u4e2a\u8fdb\u7a0b\u5904\u7406\u591a\u5c11\u4e2a\u8bf7\u6c42\u4e4b\u540e\u81ea\u52a8\u7ec8\u6b62\uff0c\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u5185\u5b58\u6ea2\u51fa\uff0c\u5982\u679c\u4e3a0\u5219\u4e0d\u4f1a\u81ea\u52a8\u7ec8\u6b62\uff0c\u9ed8\u8ba4\u4e3a0\r\npm.max_requests = 5000\r\n\r\n    pm.status_path\r\n\r\n\u6ce8\u518c\u7684URI\uff0c\u4ee5\u5c55\u793aphp-fpm\u72b6\u6001\u7684\u7edf\u8ba1\u4fe1\u606f\r\npm.status_path = \/status\r\n\u5176\u4e2d\u7edf\u8ba1\u9875\u9762\u4fe1\u606f\u6709\uff1a\r\npool \u8fdb\u7a0b\u6c60\u540d\u79f0\r\nprocess manager \u8fdb\u7a0b\u7ba1\u7406\u5668\u540d\u79f0\uff08static, dynamic or ondemand\uff09\r\nstart time php-fpm\u542f\u52a8\u65f6\u95f4\r\nstart since php-fpm\u542f\u52a8\u7684\u603b\u79d2\u6570\r\naccepted conn \u5f53\u524d\u8fdb\u7a0b\u6c60\u63a5\u6536\u7684\u8bf7\u6c42\u6570\r\nlisten queue \u7b49\u5f85\u961f\u5217\u7684\u8bf7\u6c42\u6570\r\nmax listen queue \u81ea\u542f\u52a8\u4ee5\u6765\u7b49\u5f85\u961f\u5217\u4e2d\u6700\u5927\u7684\u8bf7\u6c42\u6570\r\nlisten queue len \u7b49\u5f85\u8fde\u63a5socket\u961f\u5217\u5927\u5c0f\r\nidle processes \u5f53\u524d\u7a7a\u95f2\u7684\u8fdb\u7a0b\u6570\r\nactive processes \u6d3b\u52a8\u7684\u8fdb\u7a0b\u6570\r\ntotal processes \u603b\u5171\u7684\u8fdb\u7a0b\u6570\uff08idle+active\uff09\r\nmax active processes \u81ea\u542f\u52a8\u4ee5\u6765\u6d3b\u52a8\u7684\u8fdb\u7a0b\u6570\u6700\u5927\u503c\r\nmax children reached \u8fbe\u5230\u6700\u5927\u8fdb\u7a0b\u6570\u7684\u6b21\u6570\r\n\r\n    ping.path\r\n\r\nping url\uff0c\u53ef\u4ee5\u7528\u6765\u6d4b\u8bd5php-fpm\u662f\u5426\u5b58\u6d3b\u5e76\u53ef\u4ee5\u54cd\u5e94\r\nping.path = \/ping\r\n\r\n    ping.response\r\n\r\nping url\u7684\u54cd\u5e94\u6b63\u6587\r\nping.response = pong\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

PHP\u7a0b\u5e8f\u6027\u80fd\u5982\u4f55\uff1f\u7a0b\u5e8f\u7684\u5e76\u53d1\u53ef\u4ee5\u8fbe\u5230\u591a\u5c11\uff1f\u7a0b\u5e8f\u7684\u74f6\u9888\u5728\u54ea\u513f\uff1f\u4e3a\u4e86\u6ee1\u8db3\u4e1a\u52a1\u9700\u6c42\u5e94\u8be5\u8d2d\u4e70\u591a\u5c11\u53f0\u670d\u52a1\u5668\uff1f\u8d1f\u8f7d\u5747\u8861\u4e2d […]<\/p>\n","protected":false},"author":1479,"featured_media":139368,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-139353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/139353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=139353"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/139353\/revisions"}],"predecessor-version":[{"id":139454,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/139353\/revisions\/139454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/139368"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=139353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=139353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=139353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}