{"id":658253,"date":"2024-11-15T08:52:52","date_gmt":"2024-11-15T00:52:52","guid":{"rendered":"https:\/\/www.youtupa.com\/gonglue\/658253.html"},"modified":"2024-11-15T12:17:26","modified_gmt":"2024-11-15T04:17:26","slug":"nginx-lighttpd-apache%e4%b8%89%e5%a4%a7%e4%b8%bb%e6%b5%81web%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%af%b9%e6%af%94%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.youtupa.com\/gonglue\/658253.html","title":{"rendered":"Nginx\/Lighttpd\/Apache\u4e09\u5927\u4e3b\u6d41web\u670d\u52a1\u5668\u5bf9\u6bd4\u5206\u6790"},"content":{"rendered":"
\"Nginx\/Lighttpd\/Apache\u4e09\u5927\u4e3b\u6d41web\u670d\u52a1\u5668\u5bf9\u6bd4\u5206\u6790\"<\/figure>\n

\u6982\u8ff0<\/p>\n

\u4eca\u5929\u4e3b\u8981\u5bf9\u6bd4\u4e0b\u8fd9\u51e0\u4e2a\u4e3b\u6d41\u7684WEB\u670d\u52a1\u5668\uff1alighttpd\u3001apache\u3001nginx<\/p>\n

1\u3001LIGHTTPD<\/p>\n

1.1\u7b80\u8ff0<\/p>\n

Lighttpd \u662f\u4e00\u4e2a\u5fb7\u56fd\u4eba\u9886\u5bfc\u7684\u5f00\u6e90Web\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u5177\u6709\u975e\u5e38\u4f4e\u7684\u5185\u5b58\u5f00\u9500\uff0ccpu\u5360\u7528\u7387\u4f4e\uff0c\u6548\u80fd\u597d\uff0c\u4ee5\u53ca\u4e30\u5bcc\u7684\u6a21\u5757\u7b49\u7279\u70b9\u3002\u652f\u6301FastCGI, CGI, Auth,\u8f93\u51fa\u538b\u7f29(output compress), URL\u91cd\u5199, Alias\u7b49\u91cd\u8981\u529f\u80fd\u3002<\/p>\n

\u5b83\u4f7f\u7528FastCGI\u65b9\u5f0f\u8fd0\u884cPHP\u65f6,\u5c06\u4f7f\u7528\u5f88\u5c11\u7684PHP\u8fdb\u7a0b\u54cd\u5e94\u5f88\u5927\u7684\u5e76\u53d1\u91cf\u3002<\/p>\n

1.2 \u4f18\u70b9<\/p>\n

1\uff09\u4ece\u7a33\u5b9a\u6027\u4e0a\u770b,FastCGI\u662f\u4ee5\u72ec\u7acb\u7684\u8fdb\u7a0b\u6c60\u8fd0\u884c\u6765CGI,\u5355\u72ec\u4e00\u4e2a\u8fdb\u7a0b\u6b7b\u6389,\u7cfb\u7edf\u53ef\u4ee5\u5f88\u8f7b\u6613\u7684\u4e22\u5f03,\u7136\u540e\u91cd\u65b0\u5206\u914d\u65b0\u7684\u8fdb\u7a0b\u6765\u8fd0\u884c\u903b\u8f91;<\/p>\n

2\uff09\u4ece\u5b89\u5168\u6027\u4e0a\u770b, FastCGI\u548c\u5bbf\u4e3b\u7684server\u5b8c\u5168\u72ec\u7acb, fastcgi\u600e\u4e48down\u4e5f\u4e0d\u4f1a\u628aserver\u641e\u57ae;<\/p>\n

3\uff09\u4ece\u6027\u80fd\u4e0a\u770b, FastCGI\u628a\u52a8\u6001\u903b\u8f91\u7684\u5904\u7406\u4eceserver\u4e2d\u5206\u79bb\u51fa\u6765,\u5927\u8d1f\u8377\u7684IO\u5904\u7406\u8fd8\u662f\u7559\u7ed9\u5bbf\u4e3bserver,\u8fd9\u6837\u5bbf\u4e3bserver\u53ef\u4ee5\u4e00\u5fc3\u4e00\u610f\u4f5cIO,\u5bf9\u4e8e\u4e00\u4e2a\u666e\u901a\u7684\u52a8\u6001\u7f51\u9875\u6765\u8bf4,\u903b\u8f91\u5904\u7406\u53ef\u80fd\u53ea\u6709\u4e00\u5c0f\u90e8\u5206, \u5927\u91cf\u7684\u56fe\u7247\u7b49\u9759\u6001IO\u5904\u7406\u5b8c\u5168\u4e0d\u9700\u8981\u903b\u8f91\u7a0b\u5e8f\u7684\u53c2\u4e0e(\u6ce81)<\/p>\n

4\uff09\u4ece\u6269\u5c55\u6027\u4e0a\u8bb2,FastCGI\u662f\u4e00\u4e2a\u4e2d\u7acb\u7684\u6280\u672f\u6807\u51c6,\u5b8c\u5168\u53ef\u4ee5\u652f\u6301\u4efb\u4f55\u8bed\u8a00\u5199\u7684\u5904\u7406\u7a0b\u5e8f(php,java,python\u2026)<\/p>\n

1.3 \u652f\u6301\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

Linux(binary packages for FC3,SuSE,Debian,Gentoo,PLD-Linux,OpenWRT) BSD(FreeBSD,NetBSD,OpenBSD,MacOSX) SGIIRIX Windows(Cygwin)While it is known to compile cleanly on Solaris AIX 2\u3001APACHE<\/p>\n

2.1 \u7b80\u8ff0<\/p>\n

Apache\u662f\u4e16\u754c\u6392\u540d\u7b2c\u4e00\u7684web\u670d\u52a1\u5668,\u6839\u636e\u6240\u4f5c\u7684\u8c03\u67e5,\u4e16\u754c\u4e0a\u767e\u5206\u4e4b\u4e94\u5341\u4ee5\u4e0a\u7684web\u670d\u52a1\u5668\u5728\u4f7f\u7528apache\u3002<\/p>\n

Apache\u662f\u4ee5\u8fdb\u7a0b\u4e3a\u57fa\u7840\u7684\u7ed3\u6784\uff0c\u8fdb\u7a0b\u8981\u6bd4\u7ebf\u7a0b\u6d88\u8017\u66f4\u591a\u7684\u7cfb\u7edf\u5f00\u652f\uff0c\u4e0d\u592a\u9002\u5408\u4e8e\u591a\u5904\u7406\u5668\u73af\u5883\uff0c\u56e0\u6b64\uff0c\u5728\u4e00\u4e2aApache Web\u7ad9\u70b9\u6269\u5bb9\u65f6\uff0c\u901a\u5e38\u662f\u589e\u52a0\u670d\u52a1\u5668\u6216\u6269\u5145\u7fa4\u96c6\u8282\u70b9\u800c\u4e0d\u662f\u589e\u52a0\u5904\u7406\u5668\u3002\u4e16\u754c\u4e0a\u5f88\u591a\u8457\u540d\u7684\u7f51\u7ad9\u5982Amazon\u3001Yahoo!\u3001W3 Consortium\u3001Financial Times\u7b49\u90fd\u662fApache\u7684\u4ea7\u7269\u3002<\/p>\n

2.2 \u4f18\u70b9<\/p>\n

\u51e0\u4e4e\u53ef\u4ee5\u8fd0\u884c\u5728\u6240\u6709\u7684\u8ba1\u7b97\u673a\u5e73\u53f0\u4e0a. \u652f\u6301\u6700\u65b0\u7684http\/1.1\u534f\u8bae \u7b80\u5355\u800c\u4e14\u5f3a\u6709\u529b\u7684\u57fa\u4e8e\u6587\u4ef6\u7684\u914d\u7f6e(httpd.conf). \u652f\u6301\u901a\u7528\u7f51\u5173\u63a5\u53e3(cgi) \u652f\u6301\u865a\u62df\u4e3b\u673a. \u652f\u6301http\u8ba4\u8bc1. \u96c6\u6210perl. \u96c6\u6210\u7684\u4ee3\u7406\u670d\u52a1\u5668 \u53ef\u4ee5\u901a\u8fc7web\u6d4f\u89c8\u5668\u76d1\u89c6\u670d\u52a1\u5668\u7684\u72b6\u6001,\u53ef\u4ee5\u81ea\u5b9a\u4e49\u65e5\u5fd7. \u652f\u6301\u670d\u52a1\u5668\u7aef\u5305\u542b\u547d\u4ee4(ssi). \u652f\u6301\u5b89\u5168socket\u5c42(ssl). \u5177\u6709\u7528\u6237\u4f1a\u8bdd\u8fc7\u7a0b\u7684\u8ddf\u8e2a\u80fd\u529b. \u652f\u6301fastcgi \u652f\u6301java servlets<\/p>\n

2.3 \u652f\u6301\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

Linux Windows \u5176\u4ed6 3\u3001NGINX<\/p>\n

3.1\u7b80\u8ff0<\/p>\n

Nginx\u662f\u4fc4\u7f57\u65af\u4eba\u7f16\u5199\u7684\u5341\u5206\u8f7b\u91cf\u7ea7\u7684HTTP\u670d\u52a1\u5668,Nginx\uff0c\u5b83\u7684\u53d1\u97f3\u4e3a\u201cengine X\u201d\uff0c \u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684HTTP\u548c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u540c\u65f6\u4e5f\u662f\u4e00\u4e2aIMAP\/POP3\/SMTP\u4ee3\u7406\u670d\u52a1\u5668\u3002Nginx\u662f\u7531\u4fc4\u7f57\u65af\u4eba Igor Sysoev\u4e3a\u4fc4\u7f57\u65af\u8bbf\u95ee\u91cf\u7b2c\u4e8c\u7684 Rambler.ru\u7ad9\u70b9\u5f00\u53d1\u3002Nginx\u662f\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684Web \u670d\u52a1\u5668\/\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\u53ca\u7535\u5b50\u90ae\u4ef6\uff08IMAP\/POP3\uff09\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u5e76\u5728\u4e00\u4e2aBSD-like \u534f\u8bae\u4e0b\u53d1\u884c\u3002\u5176\u7279\u70b9\u662f\u5360\u6709\u5185\u5b58\u5c11\uff0c\u5e76\u53d1\u80fd\u529b\u5f3a\uff0c\u4e8b\u5b9e\u4e0anginx\u7684\u5e76\u53d1\u80fd\u529b\u786e\u5b9e\u5728\u540c\u7c7b\u578b\u7684\u7f51\u9875\u670d\u52a1\u5668\u4e2d\u8868\u73b0\u8f83\u597d\uff0c\u4e2d\u56fd\u5927\u9646\u4f7f\u7528nginx\u7f51\u7ad9\u7528\u6237\u6709\uff1a\u767e\u5ea6\u3001\u4eac\u4e1c\u3001\u65b0\u6d6a\u3001\u7f51\u6613\u3001\u817e\u8baf\u3001\u6dd8\u5b9d\u7b49\u3002<\/p>\n

Nginx\u4ee5\u4e8b\u4ef6\u9a71\u52a8\uff08epoll\uff09\u7684\u65b9\u5f0f\u7f16\u5199\uff0c\u6240\u4ee5\u6709\u975e\u5e38\u597d\u7684\u6027\u80fd\uff0c\u540c\u65f6\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u9ad8\u6548\u7684\u53cd\u5411\u4ee3\u7406\u3001\u8d1f\u8f7d\u5e73\u8861\uff0c\u6709\u7814\u7a76\u8868\u660e\u80fd\u652f\u6301\u9ad8\u8fbe 50,000\u4e2a\u5e76\u53d1\u8fde\u63a5\u6570\u3002\u3002\u5176\u62e5\u6709\u5339\u914d Lighttpd\u7684\u6027\u80fd\uff0c\u540c\u65f6\u8fd8\u6ca1\u6709Lighttpd\u7684\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898\uff0c\u800c\u4e14Lighttpd\u7684mod_proxy\u4e5f\u6709\u4e00\u4e9b\u95ee\u9898\u5e76\u4e14\u5f88\u4e45\u6ca1\u6709\u66f4\u65b0\u3002\u4f46\u662fNginx\u5e76\u4e0d\u652f\u6301cgi\u65b9\u5f0f\u8fd0\u884c\uff0c\u539f\u56e0\u662f\u53ef\u4ee5\u51cf\u5c11\u56e0\u6b64\u5e26\u6765\u7684\u4e00\u4e9b\u7a0b\u5e8f\u4e0a\u7684\u6f0f\u6d1e\u3002\u6240\u4ee5\u5fc5\u987b\u4f7f\u7528FastCGI\u65b9\u5f0f\u6765\u6267\u884cPHP\u7a0b\u5e8f\u3002<\/p>\n

3.2\u4f18\u70b9<\/p>\n

\u5904\u7406\u9759\u6001\u6587\u4ef6\uff0c\u7d22\u5f15\u6587\u4ef6\u4ee5\u53ca\u81ea\u52a8\u7d22\u5f15\uff1b \u6253\u5f00\u6587\u4ef6\u63cf\u8ff0\u7b26\u7f13\u51b2; \u65e0\u7f13\u5b58\u7684\u53cd\u5411\u4ee3\u7406\u52a0\u901f\uff0c\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861\u548c\u5bb9\u9519; FastCGI\uff0c\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861\u548c\u5bb9\u9519; \u6a21\u5757\u5316\u7684\u7ed3\u6784\u3002\u5305\u62ecgzipping, byte ranges, chunked responses,\u4ee5\u53ca SSI-filter\u7b49filter\u3002\u5982\u679c\u7531FastCGI\u6216\u5176\u5b83\u4ee3\u7406\u670d\u52a1\u5668\u5904\u7406\u5355\u9875\u4e2d\u5b58\u5728\u7684\u591a\u4e2aSSI\uff0c\u5219\u8fd9\u9879\u5904\u7406\u53ef\u4ee5\u5e76\u884c\u8fd0\u884c\uff0c\u800c\u4e0d\u9700\u8981\u76f8\u4e92\u7b49\u5f85\u3002 Nginx\u4e13\u4e3a\u6027\u80fd\u4f18\u5316\u800c\u5f00\u53d1\uff0c\u6027\u80fd\u662f\u5176\u6700\u91cd\u8981\u7684\u8003\u91cf,\u5b9e\u73b0\u4e0a\u975e\u5e38\u6ce8\u91cd\u6548\u7387 Nginx\u5177\u6709\u5f88\u9ad8\u7684\u7a33\u5b9a\u6027\u3002\u5176\u5b83HTTP\u670d\u52a1\u5668\uff0c\u5f53\u9047\u5230\u8bbf\u95ee\u7684\u5cf0\u503c\uff0c\u6216\u8005\u6709\u4eba\u6076\u610f\u53d1\u8d77\u6162\u901f\u8fde\u63a5\u65f6\uff0c\u4e5f\u5f88\u53ef\u80fd\u4f1a\u5bfc\u81f4\u670d\u52a1\u5668\u7269\u7406\u5185\u5b58\u8017\u5c3d\u9891\u7e41\u4ea4\u6362\uff0c\u5931\u53bb\u54cd\u5e94\uff0c\u53ea\u80fd\u91cd\u542f\u670d\u52a1\u5668\u3002\u4f8b\u5982\u5f53\u524dapache\u4e00\u65e6\u4e0a\u5230200\u4e2a\u4ee5\u4e0a\u8fdb\u7a0b\uff0cweb\u54cd\u5e94\u901f\u5ea6\u5c31\u660e\u663e\u975e\u5e38\u7f13\u6162\u4e86\u3002\u800cNginx\u91c7\u53d6\u4e86\u5206\u9636\u6bb5\u8d44\u6e90\u5206\u914d\u6280\u672f\uff0c\u4f7f\u5f97\u5b83\u7684CPU\u4e0e\u5185\u5b58\u5360\u7528\u7387\u975e\u5e38\u4f4e\u3002nginx\u5b98\u65b9\u8868\u793a\u4fdd\u630110,000\u4e2a\u6ca1\u6709\u6d3b\u52a8\u7684\u8fde\u63a5\uff0c\u5b83\u53ea\u53602.5M\u5185\u5b58\uff0c\u6240\u4ee5\u7c7b\u4f3cDOS\u8fd9\u6837\u7684\u653b\u51fb\u5bf9nginx\u6765\u8bf4\u57fa\u672c\u4e0a\u662f\u6beb\u65e0\u7528\u5904\u7684\u3002\u5c31\u7a33\u5b9a\u6027\u800c\u8a00,nginx\u6bd4lighthttpd\u66f4\u80dc\u4e00\u7b79\u3002 Nginx\u652f\u6301\u70ed\u90e8\u7f72\u3002\u5b83\u7684\u542f\u52a8\u7279\u522b\u5bb9\u6613,\u5e76\u4e14\u51e0\u4e4e\u53ef\u4ee5\u505a\u52307*24\u4e0d\u95f4\u65ad\u8fd0\u884c\uff0c\u5373\u4f7f\u8fd0\u884c\u6570\u4e2a\u6708\u4e5f\u4e0d\u9700\u8981\u91cd\u65b0\u542f\u52a8\u3002\u4f60\u8fd8\u80fd\u591f\u5728\u4e0d\u95f4\u65ad\u670d\u52a1\u7684\u60c5\u51b5\u4e0b\uff0c\u5bf9\u8f6f\u4ef6\u7248\u672c\u8fdb\u884c\u8fdb\u884c\u5347\u7ea7\u3002<\/p>\n

3.3\u64cd\u4f5c\u7cfb\u7edf<\/p>\n

Linux Windows\uff08\u79fb\u690d\u7248\u672c\uff09 \u5176\u4ed6<\/p>\n

3.4 \u63a8\u8350\u67b6\u6784<\/p>\n

nginx\u4f5c\u4e3a\u6700\u524d\u7aef\u7684web cache\u7cfb\u7edf\uff0c\u901a\u5e38\u7684\u67b6\u6784\u5982\u4e0b<\/p>\n

\u8fd9\u4e2a\u7ed3\u6784\u7684\u4f18\u70b9\uff1a<\/p>\n

\u53ef\u4ee5\u4f7f\u7528nginx\u524d\u7aef\u8fdb\u884c\u8bf8\u591a\u590d\u6742\u7684\u914d\u7f6e\uff0c\u8fd9\u4e9b\u914d\u7f6e\u4ece\u524d\u5728squid\u662f\u6ca1\u6cd5\u505a\u6216\u8005\u505a\u8d77\u6765\u6bd4\u8f83\u9ebb\u70e6\u7684\uff0c\u6bd4\u5982\u9488\u5bf9\u76ee\u5f55\u7684\u9632\u76d7\u94fe\u3002 nginx\u524d\u7aef\u53ef\u4ee5\u76f4\u63a5\u8f6c\u53d1\u90e8\u5206\u4e0d\u9700\u8981\u7f13\u5b58\u7684\u8bf7\u6c42\u3002 \u56e0\u4e3anginx\u6548\u7387\u9ad8\u4e8esquid\uff0c\u6240\u4ee5\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u4ee5\u5229\u7528nginx\u7684\u7f13\u5b58\u6765\u51cf\u8f7bsquid\u538b\u529b\u3002 \u53ef\u4ee5\u5b9e\u73b0url hash\u7b49\u5206\u914d\u7b56\u7565 \u53ef\u4ee5\u5728\u6700\u524d\u7aef\u5f00\u542fgzip\u538b\u7f29\uff0c\u8fd9\u6837\u540e\u9762\u7684squid\u7f13\u5b58\u7684\u7eaf\u7cb9\u662f\u65e0\u538b\u7f29\u6587\u6863\uff0c\u53ef\u4ee5\u907f\u514d\u5f88\u591a\u65e0\u8c13\u7684\u7a7f\u900f\u3002 \u56e0\u4e3anginx\u7a33\u5b9a\u6027\u6bd4\u8f83\u9ad8\uff0c\u6240\u4ee5lvs\u4e0d\u9700\u8981\u7ecf\u5e38\u8c03\u6574\uff0c\u901a\u8fc7nginx\u8c03\u6574\u5c31\u53ef\u4ee5\u3002 squid\u7684\u6587\u4ef6\u6253\u5f00\u6570\u6309\u9ed8\u8ba4\u76841024\u5c31\u7ef0\u7ef0\u6709\u4f59\uff0c\u4e0d\u8fc7\u5904\u7406\u7684\u8bf7\u6c42\u53ef\u4e00\u4e2a\u90fd\u4e0d\u4f1a\u5c11\u3002 \u53ef\u4ee5\u542f\u7528nginx\u7684\u65e5\u5fd7\u529f\u80fd\u53d6\u4ee3squid\uff0c\u8fd9\u6837\u505a\u5b9e\u65f6\u70b9\u51fb\u91cf\u7edf\u8ba1\u65f6\u53ef\u4ee5\u7cbe\u786e\u5b9a\u4f4d\u5230url\uff0c\u4e0d\u5fc5\u8981\u518d\u7528\u4f4e\u6548\u7387\u7684grep\u6765\u8fc7\u6ee4\u3002 \u56e0\u4e3anginx\u7684\u8d1f\u8f7d\u80fd\u529b\u9ad8\u4e8esquid\uff0c\u6240\u4ee5\u5728\u7528lvs\u5206\u6d41\u65f6\u53ef\u4ee5\u4e0d\u5fc5\u5206\u5f97\u7279\u522b\u5747\u8861\uff0c\u51fa\u73b0\u5355\u70b9\u6545\u969c\u7684\u51e0\u7387\u6bd4\u8f83\u4f4e\u3002<\/p>\n

nginx\u548csquid\u914d\u5408\u642d\u5efa\u7684web\u670d\u52a1\u5668\u524d\u7aef\u7cfb\u7edf\u67b6\u6784\uff1a<\/p>\n

\u524d\u7aef\u7684lvs\u548csquid\uff0c\u6309\u7167\u5b89\u88c5\u65b9\u6cd5\uff0c\u628aepoll\u6253\u5f00\uff0c\u914d\u7f6e\u6587\u4ef6\u7167\u642c\uff0c\u57fa\u672c\u4e0a\u95ee\u9898\u4e0d\u591a\u3002<\/p>\n

\u8fd9\u4e2a\u67b6\u6784\u548capp_squid\u67b6\u6784\u7684\u533a\u522b\uff0c\u4e5f\u662f\u5173\u952e\u70b9\u5c31\u662f\uff1a\u52a0\u5165\u4e86\u4e00\u7ea7\u4e2d\u5c42\u4ee3\u7406\uff0c\u4e2d\u5c42\u4ee3\u7406\u7684\u597d\u5904\u5b9e\u5728\u592a\u591a\u4e86\uff1a<\/p>\n

gzip\u538b\u7f29\uff1a\u538b\u7f29\u53ef\u4ee5\u901a\u8fc7nginx\u505a\uff0c\u8fd9\u6837\uff0c\u540e\u53f0\u5e94\u7528\u670d\u52a1\u5668\u4e0d\u7ba1\u662fapache\u3001resin\u3001lighttpd\u751a\u81f3iis\u6216\u5176\u4ed6\u53e4\u602a\u670d\u52a1\u5668\uff0c\u90fd\u4e0d\u7528\u8003\u8651\u538b\u7f29\u7684\u529f\u80fd\u95ee\u9898\u3002 \u8d1f\u8f7d\u5747\u8861\u548c\u6545\u969c\u5c4f\u853d\uff1anginx\u53ef\u4ee5\u4f5c\u4e3a\u8d1f\u8f7d\u5747\u8861\u4ee3\u7406\u4f7f\u7528\uff0c\u5e76\u6709\u6545\u969c\u5c4f\u853d\u529f\u80fd\uff0c\u8fd9\u6837\uff0c\u6839\u636e\u76ee\u5f55\u751a\u81f3\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5236\u5b9a\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u53d8\u6210\u4e86\u5c0fcase\u3002 \u65b9\u4fbf\u7684\u8fd0\u7ef4\u7ba1\u7406\uff0c\u5728\u5404\u79cd\u60c5\u51b5\u4e0b\u53ef\u4ee5\u7075\u6d3b\u5236\u8ba2\u65b9\u6848\u3002 \u6743\u9650\u6e05\u6670\uff1a\u8fd9\u53f0\u673a\u5668\u5c31\u662f\u4e0d\u5199\u7a0b\u5e8f\u7684\u7ef4\u62a4\u4eba\u5458\u8d1f\u8d23\uff0c\u7a0b\u5e8f\u5458\u4e00\u822c\u4e0d\u9700\u8981\u7ba1\u7406\u8fd9\u53f0\u673a\u5668\uff0c\u8fd9\u6837\u5047\u5982\u51fa\u73b0\u6545\u969c\uff0c\u5f88\u5bb9\u6613\u80fd\u627e\u5230\u6b63\u786e\u7684\u4eba\u3002\u5bf9\u4e8e\u5e94\u7528\u670d\u52a1\u5668\u548c\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0c\u6700\u597d\u662f\u4ece\u7ef4\u62a4\u4eba\u5458\u7684\u89c6\u7ebf\u4e2d\u6d88\u5931\uff0c\u6211\u7684\u76ee\u6807\u662f\uff0c\u8fd9\u4e9b\u670d\u52a1\u53ea\u8981\u80fd\u8dd1\u5f97\u8d77\u6765\u5c31\u53ef\u4ee5\u4e86\uff0c\u5176\u5b83\u7684\u4e8b\u60c5\u5168\u90e8\u53ef\u4ee5\u5728\u5916\u90e8\u5904\u7406\u6389\u3002 3\u79cdWEB\u670d\u52a1\u5668\u7684\u6bd4\u8f83<\/p>\n

\u4ee5\u4e0b\u662f\u9488\u5bf9\u8fd9\u4e09\u4e2aweb\u670d\u52a1\u5668\u7684\u4e00\u4e9b\u6bd4\u8f83\uff1a<\/p>\n

\u4ece\u4e0a\u9762\u7684\u5206\u6790\u6bd4\u8f83\u5efa\u8bae\u7684\u4e00\u79cd\u65b9\u6848\u662f\uff1a<\/p>\n

Apache\u540e\u53f0\u670d\u52a1\u5668\uff08\u4e3b\u8981\u5904\u7406php\u53ca\u4e00\u4e9b\u529f\u80fd\u8bf7\u6c42 \u5982\uff1a\u4e2d\u6587url\uff09 Nginx \u524d\u7aef\u670d\u52a1\u5668\uff08\u5229\u7528\u5b83\u5360\u7528\u7cfb\u7edf\u8d44\u6e90\u5c11\u5f97\u4f18\u52bf\u6765\u5904\u7406\u9759\u6001\u9875\u9762\u5927\u91cf\u8bf7\u6c42\uff09 Lighttpd\u56fe\u7247\u670d\u52a1\u5668<\/p>\n

\u540e\u9762\u4f1a\u5206\u4eab\u66f4\u591adevops\u548cDBA\u65b9\u9762\u7684\u5185\u5bb9\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u5173\u6ce8\u4e0b~<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6982\u8ff0 \u4eca\u5929\u4e3b\u8981\u5bf9\u6bd4\u4e0b\u8fd9\u51e0\u4e2a\u4e3b\u6d41\u7684WEB\u670d\u52a1\u5668\uff1alighttpd\u3001apache\u3001nginx 1\u3001LIGHTTPD […]<\/p>\n","protected":false},"author":1,"featured_media":659162,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-658253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gonglue"],"_links":{"self":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/658253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/comments?post=658253"}],"version-history":[{"count":1,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/658253\/revisions"}],"predecessor-version":[{"id":659163,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/posts\/658253\/revisions\/659163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/media\/659162"}],"wp:attachment":[{"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/media?parent=658253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/categories?post=658253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youtupa.com\/wp-json\/wp\/v2\/tags?post=658253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}