{"id":1551,"date":"2023-09-06T21:12:03","date_gmt":"2023-09-06T13:12:03","guid":{"rendered":"https:\/\/white-night.club\/?p=1551"},"modified":"2023-11-09T11:07:53","modified_gmt":"2023-11-09T03:07:53","slug":"web2","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/09\/06\/web2\/","title":{"rendered":"Nginx\u7684\u8fdb\u7a0b\u6a21\u578b"},"content":{"rendered":"\n<p>Nginx\u91c7\u7528\u7684\u662f\u4e00\u5bf9\u591a(one master\/multi workers)\u7684\u8fdb\u7a0b\u6c60\u6a21\u578b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u8fdb\u7a0b\u6c60\uff1a\u52a8\u6001\u521b\u5efa-\u9500\u6bc1\u8fdb\u7a0b\u5f88\u660e\u663e\u4f1a\u589e\u52a0\u5f00\u9500\u3002\u5982\u679c\u670910\u4ebf\u7528\u6237\uff0c\u90a3\u521b\u5efa-\u9500\u6bc110\u4ebf\u8fdb\u7a0b\u53bb\u63d0\u4f9b\u670d\u52a1\u5f88\u660e\u663e\u5f00\u9500\u5f88\u5927\u3002\u90a3\u4e0d\u5982\u8ba9\u670d\u52a1\u5668\u63d0\u524d\u751f\u6210\u5b50\u8fdb\u7a0b\u3002<\/cite><\/blockquote>\n\n\n\n<p>\u4e00\u822c\u6765\u8bf4\uff0cnginx\u67091\u4e2a\u4e3b\u8fdb\u7a0b\uff08master\uff09\u548c\u591a\u4e2a\u5b50\u8fdb\u7a0b\uff08worker\uff09\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u3002\u4e3b\u8fdb\u7a0b\u53c8\u79f0\u4e3a\u76d1\u63a7\u8fdb\u7a0b\uff0c\u53ea\u8d1f\u8d23\u63a5\u6536UNIX\u4fe1\u53f7\u4ee5\u53ca\u7ba1\u7406\u76d1\u63a7\u5b50\u8fdb\u7a0b\u3002<\/p>\n\n\n\n<p>\u5b50\u8fdb\u7a0b\u8981\u5e72\u7684\u6d3b\u5c31\u6bd4\u8f83\u591a\u4e86\u3002\u6bd4\u5982\uff1a\u4e0e\u5176\u4ed6\u5b50\u8fdb\u7a0b\u901a\u8fc7\u4e00\u4e9b\u7b97\u6cd5\uff08\u6bd4\u5982RR\uff0c\u968f\u673a\u7b97\u6cd5\uff09\u7ade\u4e89\u4e0e\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\uff0c\u6267\u884cnginx\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u5904\u7406TCP\/HTTP\u8bf7\u6c42\u3002<\/p>\n\n\n\n<p>\u5f53\u5b50\u8fdb\u7a0b\u56e0\u4e3a\u67d0\u4e9b\u539f\u56e0\u610f\u5916\u7ec8\u6b62\u65f6\uff0c\u4e3b\u8fdb\u7a0b\u4f1a\u521b\u5efa\u65b0\u7684\u5b50\u8fdb\u7a0b\uff0c\u4ece\u800c\u4fdd\u8bc1\u8fdb\u7a0b\u6c60\u7684\u7a33\u5b9a\u3002<\/p>\n\n\n\n<p>\u540e\u7eed\u4f1a\u63d0\u5230configure\uff08\u914d\u7f6e\u6587\u4ef6\uff09\u3002\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u5b50\u8fdb\u7a0b\u7684\u6570\u76ee\uff08\u4e00\u822c\u548cCPU\u6838\u5fc3\u6570\u76f8\u540c\u3002\u6bd5\u7adf\u8fdb\u7a0b\u5207\u6362\u4e5f\u4f1a\u589e\u52a0\u5f00\u9500\u3002\uff09\u4ee5\u53ca\u5b50\u8fdb\u7a0b\u7684\u6700\u5927\u8fde\u63a5\u6570\u7b49\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u5bf9\u591a\u6a21\u578b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[66,65],"tags":[68,67],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1551"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=1551"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1551\/revisions"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=1551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=1551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=1551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}