{"id":42,"date":"2022-04-26T10:32:36","date_gmt":"2022-04-26T02:32:36","guid":{"rendered":"https:\/\/frogvps.com\/?p=42"},"modified":"2022-11-27T20:52:48","modified_gmt":"2022-11-27T12:52:48","slug":"nginx%e7%9a%84%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/frogvps.com\/?p=42","title":{"rendered":"Nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4f18\u5316"},"content":{"rendered":"\n<p>Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684web\u670d\u52a1\u7aef\uff0c\u7ecf\u5386\u4e86\u5341\u51e0\u5e74\u7684\u8fed\u4ee3\u66f4\u65b0\uff0c\u76ee\u524d\u529f\u80fd\u5df2\u7ecf\u975e\u5e38\u7684\u5b8c\u5584\u800c\u4e14\u7a33\u5b9a\u3002\u5b83\u65e2\u53ef\u4ee5\u4f5c\u4e3ahttp\u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u7528\u4f5c\u53cd\u5411\u4ee3\u7406\u548c\u90ae\u4ef6\u670d\u52a1\u5668\u3002\u5b83\u53ef\u4ee5\u5feb\u901f\u5730\u54cd\u5e94\u9759\u6001\u7f51\u9875\u7684\u8bf7\u6c42\uff0c\u4e5f\u53ef\u4ee5\u7ed3\u5408FastCGI\u7b49\u534f\u8bae\u53cd\u5411\u4ee3\u7406\u52a8\u6001\u8d44\u6e90\u8bf7\u6c42\u3002\u672c\u6587\u5c06\u4ecb\u7ecdnginx\u7684\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u914d\u7f6e\uff0c\u4ec5\u4f9b\u53c2\u8003\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u914d\u7f6e\u6587\u4ef6<\/h2>\n\n\n\n<p>\u4f7f\u7528\u9ed8\u8ba4\u7684\u5305\u7ba1\u7406\u5de5\u5177yum\u6216apt\u5b89\u88c5\u7684\u4e00\u822c\u4f1a\u751f\u6210\u4ee5\u4e0b\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<p>\u4e3b\u914d\u7f6e\u6587\u4ef6\uff1anginx.conf<\/p>\n\n\n\n<p>\u5b50\u914d\u7f6e\u6587\u4ef6\uff1aconf.d\/*.conf<\/p>\n\n\n\n<p>\u4e3b\u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u7528\u6765\u5b58\u653e\u5168\u5c40\u914d\u7f6e\uff0cevents\u5757\uff0chttp\u5757<\/p>\n\n\n\n<p>\u5b50\u914d\u7f6e\u6587\u4ef6\u7528\u6765\u5b58\u653e\u67d0\u4e2a\u7f51\u7ad9\u7684\u5177\u4f53\u914d\u7f6e\uff0cserver\u5757<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u5168\u5c40\u914d\u7f6e<\/h2>\n\n\n\n<p>\u5bf9\u5168\u5c40\u751f\u6548\uff0c\u4e3b\u8981\u8bbe\u7f6enginx\u7684\u542f\u52a8\u7528\u6237\/\u7ec4\uff0c\u542f\u52a8\u7684\u5de5\u4f5c\u8fdb\u7a0b\u6570\u91cf\uff0c\u5de5\u4f5c\u6a21\u5f0f\uff0cNginx\u7684PID\u8def\u5f84\uff0c\u65e5\u5fd7\u8def\u5f84\u7b49\u3002<\/p>\n\n\n\n<p>\u542f\u52a8Nginx\u5de5\u4f5c\u8fdb\u7a0b\u7684\u7528\u6237\u548c\u7ec4\uff0cworker\u8fdb\u7a0b\u4ee5nginx\u7684\u8eab\u4efd\u8fd0\u884c\uff0cmaster\u8fdb\u7a0b\u90fd\u662f\u4ee5root\u8eab\u4efd\u8fd0\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user  nginx;<\/code><\/pre>\n\n\n\n<p>\u5de5\u4f5c\u8fdb\u7a0b\u7684\u6570\u91cf\u81ea\u52a8\u8bbe\u7f6e\u6210CPU\u7684\u6570\u91cf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>worker_processes  auto;<\/code><\/pre>\n\n\n\n<p><strong>\u5c06Nginx\u5de5\u4f5c\u8fdb\u7a0b\u7ed1\u5b9a\u5230\u6307\u5b9a\u7684CPU\u6838\u5fc3<\/strong><\/p>\n\n\n\n<p>worker\u8fdb\u7a0b\u5177\u4f53\u8fd0\u884c\u5728\u54ea\u9897CPU\u4e0a\u4e0d\u662f\u56fa\u5b9a\u7684\uff0c\u662f\u6d3b\u52a8\u7684\u3002\u9020\u6210CPU\u4e0a\u7684\u6570\u636e\u7f13\u5b58\u5931\u6548\uff0c\u5f71\u54cd\u5de5\u4f5c\u6548\u7387\u3002\u9ed8\u8ba4Nginx\u662f\u4e0d\u8fdb\u884c\u8fdb\u7a0b\u7ed1\u5b9a\u7684\uff0c\u7ed1\u5b9a\u5e76\u4e0d\u662f\u610f\u5473\u7740\u5f53\u524dnginx\u8fdb\u7a0b\u72ec\u5360\u4ee5\u4e00\u6838\u5fc3CPU\uff0c\u4f46\u662f\u53ef\u4ee5\u4fdd\u8bc1\u6b64\u8fdb\u7a0b\u4e0d\u4f1a\u8fd0\u884c\u5728\u5176\u4ed6\u6838\u5fc3\u4e0a\uff0c\u8fd9\u5c31\u6781\u5927\u51cf\u5c11\u4e86nginx\u7684\u5de5\u4f5c\u8fdb\u7a0b\u5728\u4e0d\u540c\u7684cpu\u6838\u5fc3\u4e0a\u7684\u6765\u56de\u8df3\u8f6c\uff0c\u51cf\u5c11\u4e86CPU\u5bf9\u8fdb\u7a0b\u7684\u8d44\u6e90\u5206\u914d\u4e0e\u56de\u6536\u4ee5\u53ca\u5185\u5b58\u7ba1\u7406\u7b49\uff0c\u56e0\u6b64\u53ef\u4ee5\u6709\u6548\u7684\u63d0\u5347nginx\u670d\u52a1\u5668\u7684\u6027\u80fd\u3002<\/p>\n\n\n\n<p><strong>CPU\u7684\u8868\u793a\u65b9\u6cd5\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>00000001\uff1a0\u53f7CPU<br>\u200b<br>00000010\uff1a1\u53f7CPU<br>\u200b<br>\u3002\u3002\u3002<br>\u200b<br>10000000\uff1a7\u53f7CPU<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>worker_cpu_affinity 00000001 00000010; &nbsp; &nbsp; &nbsp; &nbsp;#\u6211\u7684\u673a\u5668\u53ea\u67092\u9897CPU\u6240\u4ee5\u8fd9\u91cc\u7ed1\u5b9a2\u4e2a<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u9ad8\u5e76\u53d1\u914d\u7f6e<\/h2>\n\n\n\n<p>\u6240\u6709worker\u8fdb\u7a0b\u80fd\u6253\u5f00\u7684\u6587\u4ef6\u6570\u91cf\u4e0a\u9650,\u5305\u62ec:Nginx\u7684\u6240\u6709\u8fde\u63a5\uff08\u4f8b\u5982\u4e0e\u4ee3\u7406\u670d\u52a1\u5668\u7684\u8fde\u63a5\u7b49\uff09\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4e0e\u5ba2\u6237\u7aef\u7684\u8fde\u63a5,\u53e6\u4e00\u4e2a\u8003\u8651\u56e0\u7d20\u662f\u5b9e\u9645\u7684\u5e76\u53d1\u8fde\u63a5\u6570\u4e0d\u80fd\u8d85\u8fc7\u7cfb\u7edf\u7ea7\u522b\u7684\u6700\u5927\u6253\u5f00\u6587\u4ef6\u6570\u7684\u9650\u5236\u3002\u6700\u597d\u4e0eulimit -n \u6216\u8005limits.conf\u7684\u503c\u4fdd\u6301\u4e00\u81f4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>worker_rlimit_nofile 65536;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>events {\n#\u8bbe\u7f6e\u5355\u4e2a\u5de5\u4f5c\u8fdb\u7a0b\u7684\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\n &nbsp;worker_connections 65536;\n \n#\u4f7f\u7528epoll\u4e8b\u4ef6\u9a71\u52a8\uff0cNginx\u652f\u6301\u4f17\u591a\u7684\u4e8b\u4ef6\u9a71\u52a8\uff0c\u6bd4\u5982:select\u3001poll\u3001epoll&nbsp; &nbsp; \n &nbsp;use epoll;\n\n#on\u4e3a\u540c\u4e00\u65f6\u523b\u4e00\u4e2a\u8bf7\u6c42\u8f6e\u6d41\u7531work\u8fdb\u7a0b\u5904\u7406,\u800c\u9632\u6b62\u88ab\u540c\u65f6\u5524\u9192\u6240\u6709worker,\u907f\u514d\u591a\u4e2a\u7761\u7720\u8fdb\u7a0b\u88ab\u5524\u9192\u7684\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u4e3aoff\uff0c\u65b0\u8bf7\u6c42\u4f1a\u5524\u9192\u6240\u6709worker\u8fdb\u7a0b,\u6b64\u8fc7\u7a0b\u4e5f\u79f0\u4e3a\"\u60ca\u7fa4\"\u56e0\u6b64nginx\u521a\u5b89\u88c5\u5b8c\u4ee5\u540e\u8981\u8fdb\u884c\u9002\u5f53\u7684\u4f18\u5316\u3002\u5efa\u8bae\u8bbe\u7f6e\u4e3aon&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n &nbsp;accept_mutex on; \n&nbsp;\n#on\u65f6Nginx\u670d\u52a1\u5668\u7684\u6bcf\u4e2a\u5de5\u4f5c\u8fdb\u7a0b\u53ef\u4ee5\u540c\u65f6\u63a5\u53d7\u591a\u4e2a\u65b0\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u6b64\u6307\u4ee4\u9ed8\u8ba4\u4e3aoff\uff0c\u5373\u9ed8\u8ba4\u4e3a\u4e00\u4e2a\u5de5\u4f5c\u8fdb\u7a0b\u53ea\u80fd\u4e00\u6b21\u63a5\u53d7\u4e00\u4e2a\u65b0\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u6253\u5f00\u540e\u51e0\u4e2a\u540c\u65f6\u63a5\u53d7\u591a\u4e2a\u3002\u5efa\u8bae\u8bbe\u7f6e\u4e3aon  &nbsp;\n &nbsp;multi_accept on; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n}<\/code><\/pre>\n\n\n\n<p>\u540c\u65f6\u8fd8\u9700\u8981\u4fee\u6539service\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/usr\/lib\/systemd\/system\/nginx.service<\/code><\/pre>\n\n\n\n<p>\u5728service\u6587\u4ef6\u91cc\u914d\u7f6eLimitNOFILE\uff0c\u53c2\u8003\u914d\u7f6e\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=nginx - high performance web server\nDocumentation=https:\/\/nginx.org\/en\/docs\/\nAfter=network-online.target remote-fs.target nss-lookup.target\nWants=network-online.target\n\n&#91;Service]\nType=forking\nPIDFile=\/var\/run\/nginx.pid\nExecStart=\/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf\nExecReload=\/bin\/sh -c \"\/bin\/kill -s HUP $(\/bin\/cat \/var\/run\/nginx.pid)\"\nExecStop=\/bin\/sh -c \"\/bin\/kill -s TERM $(\/bin\/cat \/var\/run\/nginx.pid)\"\nLimitNOFILE=65536\n\n&#91;Install]\nWantedBy=multi-user.target                                                                                                                                                                    <\/code><\/pre>\n\n\n\n<p>\u914d\u7f6e\u5b8c\u540e\u91cd\u65b0\u52a0\u8f7d\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl daemon-reload\nsystemctl restart nginx<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">http\u914d\u7f6e\u5757<\/h2>\n\n\n\n<p><strong>\u9690\u85cfnginx\u7684\u7248\u672c<\/strong><\/p>\n\n\n\n<p>\u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u5efa\u8bae\u9690\u85cfnginx\u7684\u7248\u672c\u53f7\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server_tokens off;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/xiaoqinwa\/frogpic\/img\/20220426a1.jpg\" alt=\"\"\/><figcaption class=\"wp-element-caption\">\u7528curl\u547d\u4ee4\u67e5\u770b\u54cd\u5e94\u62a5\u6587\u7684\u9996\u90e8\u53ef\u4ee5\u770b\u5230\u7248\u672c\u5df2\u7ecf\u9690\u85cf<\/figcaption><\/figure>\n\n\n\n<p><strong>\u4fee\u6539\u4e0a\u4f20\u6587\u4ef6\u7684\u5927\u5c0f<\/strong><\/p>\n\n\n\n<p>nginx\u9ed8\u8ba4\u4e0a\u4f20\u9650\u52361M\uff0c\u5982\u679c\u7528\u6765\u505a\u7f51\u7ad9\uff0c\u5efa\u8bae\u8c03\u5927\u8fd9\u4e2a\u503c(php.ini\u4e5f\u9700\u8981\u540c\u65f6\u4fee\u6539)\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>client_max_body_size 20M;<br>client_body_buffer_size 1024K;<br>client_body_temp_path \/data\/client_body_temp\/ 1 2 2;<\/code><\/pre>\n\n\n\n<p><strong>\u540c\u65f6\u4fee\u6539 \/etc\/php\/7.4\/fpm\/php.ini<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>upload_max_filesize = 20M<\/code><\/pre>\n\n\n\n<p><strong>\u7f13\u5b58\u6253\u5f00\u8fc7\u7684\u6587\u4ef6\u4fe1\u606f<\/strong><\/p>\n\n\n\n<p>\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u7f13\u5b58\u66fe\u7ecf\u8bfb\u53d6\u7684\u6587\u4ef6\u4fe1\u606f\uff0c\u4e0b\u6b21\u8bbf\u95ee\u53ef\u4ee5\u76f4\u63a5\u4ece\u7f13\u5b58\u533a\u8bfb\u53d6\u6570\u636e\u3002<\/p>\n\n\n\n<p><strong>nginx\u53ef\u4ee5\u7f13\u5b58\u4ee5\u4e0b\u4e09\u79cd\u4fe1\u606f\uff1a<\/strong> <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>(1) \u6587\u4ef6\u5143\u6570\u636e\uff1a\u6587\u4ef6\u7684\u63cf\u8ff0\u7b26\u3001\u6587\u4ef6\u5927\u5c0f\u548c\u6700\u8fd1\u4e00\u6b21\u7684\u4fee\u6539\u65f6\u95f4 <\/li>\n\n\n\n<li>(2) \u6253\u5f00\u7684\u76ee\u5f55\u7ed3\u6784 <\/li>\n\n\n\n<li>(3) \u6ca1\u6709\u627e\u5230\u7684\u6216\u8005\u6ca1\u6709\u6743\u9650\u8bbf\u95ee\u7684\u6587\u4ef6\u7684\u76f8\u5173\u4fe1\u606f<\/li>\n<\/ul>\n\n\n\n<p>\u53ef\u7f13\u5b58\u7684\u7f13\u5b58\u9879\u4e0a\u9650\u6570\u91cf;\u8fbe\u5230\u4e0a\u9650\u540e\u4f1a\u4f7f\u7528LRU(Least recently used\uff0c\u6700\u8fd1\u6700\u5c11\u4f7f\u7528)\u7b97\u6cd5\u5b9e\u73b0\u7ba1\u7406<\/p>\n\n\n\n<p>max=N;<\/p>\n\n\n\n<p> \u7f13\u5b58\u9879\u7684\u975e\u6d3b\u52a8\u65f6\u957f\uff0c\u5728\u6b64\u5904\u6307\u5b9a\u7684\u65f6\u957f\u5185\u672a\u88ab\u547d\u4e2d\u7684\u6216\u547d\u4e2d\u7684\u6b21\u6570\u5c11\u4e8e\u6307\u4ee4\u6240\u6307\u5b9a\u7684\u6b21\u6570\u7684\u7f13\u5b58\u9879\u5373\u4e3a\u975e\u6d3b\u52a8\u9879\uff0c\u5c06\u88ab\u5220\u9664                  <\/p>\n\n\n\n<p>inactive=time;        <\/p>\n\n\n\n<p>open_file_cache_min_uses;              <\/p>\n\n\n\n<p>\u7f13\u5b58\u9879\u6709\u6548\u6027\u7684\u68c0\u67e5\u9a8c\u8bc1\u9891\u7387\uff0c\u9ed8\u8ba4\u503c\u4e3a60s <\/p>\n\n\n\n<p>open_file_cache_valid time;<\/p>\n\n\n\n<p>\u662f\u5426\u7f13\u5b58\u67e5\u627e\u65f6\u53d1\u751f\u9519\u8bef\u7684\u6587\u4ef6\u4e00\u7c7b\u7684\u4fe1\u606f,\u9ed8\u8ba4\u503c\u4e3aoff<\/p>\n\n\n\n<p>open_file_cache_errors on | off; <\/p>\n\n\n\n<p>open_file_cache\u6307\u4ee4\u7684inactive\u53c2\u6570\u6307\u5b9a\u7684\u65f6\u957f\u5185\uff0c\u81f3\u5c11\u88ab\u547d\u4e2d\u6b64\u5904\u6307\u5b9a\u7684\u6b21\u6570\u65b9\u53ef\u88ab\u5f52\u7c7b\u4e3a\u6d3b\u52a8\u9879,\u9ed8\u8ba4\u503c\u4e3a1<\/p>\n\n\n\n<p>open_file_cache_min_uses number; <\/p>\n\n\n\n<p><strong>\u4f8b\u5b50\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>open_file_cache max=10000 inactive=60s; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u6700\u5927\u7f13\u5b5810000\u4e2a\u6587\u4ef6\uff0c\u975e\u6d3b\u52a8<em>\u6570\u636e\u8d85\u65f6\u65f6\u957f60s<\/em>\nopen_file_cache_valid 60s; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#\u6bcf\u95f4\u969460s\u68c0\u67e5\u4e00\u4e0b\u7f13<em>\u5b58\u6570\u636e\u6709\u6548\u6027<\/em>\nopen_file_cache_min_uses 5; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #60\u79d2\u5185\u81f3\u5c11\u88ab\u547d\u4e2d\u8bbf\u95ee5<em>\u6b21\u624d\u88ab\u6807\u8bb0\u4e3a\u6d3b\u52a8\u6570\u636e<\/em>\nopen_file_cache_errors on; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#\u7f13\u5b58\u9519\u8bef\u4fe1\u606f<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>\u5f00\u542f\u538b\u7f29\u529f\u80fd<\/strong><\/p>\n\n\n\n<p>Nginx\u652f\u6301\u5bf9\u6307\u5b9a\u7c7b\u578b\u7684\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\u7136\u540e\u518d\u4f20\u8f93\u7ed9\u5ba2\u6237\u7aef\uff0c\u800c\u4e14\u538b\u7f29\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u538b\u7f29\u6bd4\u4f8b\uff0c\u538b\u7f29\u540e\u7684\u6587\u4ef6\u5927\u5c0f\u5c06\u6bd4\u6e90\u6587\u4ef6\u663e\u8457\u53d8\u5c0f\uff0c\u8fd9\u6837\u6709\u52a9\u4e8e\u964d\u4f4e\u51fa\u53e3\u5e26\u5bbd\u7684\u5229\u7528\u7387\uff0c\u964d\u4f4e\u4f01\u4e1a\u7684IT\u652f\u51fa\uff0c\u4e0d\u8fc7\u4f1a\u5360\u7528\u76f8 \u5e94\u7684CPU\u8d44\u6e90\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gzip on; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\ngzip_vary on; &nbsp; &nbsp;#\u5982\u679c\u542f\u7528\u538b\u7f29\uff0c\u662f\u5426\u5728\u54cd\u5e94\u62a5\u6587\u9996\u90e8\u63d2\u5165\u201cVary: Accept-Encoding\u201d,\u4e00\u822c\u5efa\u8bae\u6253\u5f00<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684web\u670d\u52a1\u7aef\uff0c\u7ecf\u5386\u4e86\u5341\u51e0\u5e74\u7684\u8fed\u4ee3\u66f4\u65b0\uff0c\u76ee\u524d\u529f\u80fd\u5df2\u7ecf\u975e\u5e38\u7684\u5b8c\u5584\u800c\u4e14\u7a33\u5b9a\u3002\u5b83\u65e2\u53ef\u4ee5\u4f5c\u4e3ahttp\u670d\u52a1\u5668\uff0c\u4e5f\u53ef\u4ee5\u7528\u4f5c\u53cd\u5411\u4ee3\u7406\u548c\u90ae\u4ef6\u670d\u52a1\u5668\u3002\u5b83\u53ef\u4ee5\u5feb\u901f\u5730\u54cd\u5e94\u9759\u6001\u7f51\u9875\u7684\u8bf7\u6c42\uff0c\u4e5f\u53ef\u4ee5\u7ed3\u5408FastCGI\u7b49\u534f\u8bae\u53cd\u5411\u4ee3\u7406\u52a8\u6001\u8d44\u6e90\u8bf7\u6c42\u3002\u672c\u6587&#8230;<\/p>\n","protected":false},"author":1,"featured_media":53,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14],"topic":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-nginx"],"_links":{"self":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":14,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/905"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/media\/53"}],"wp:attachment":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}