{"id":41462,"date":"2023-02-25T13:50:43","date_gmt":"2023-02-25T05:50:43","guid":{"rendered":"http:\/\/gulass.cn\/?p=41462"},"modified":"2023-02-25T13:50:43","modified_gmt":"2023-02-25T05:50:43","slug":"when-nginx-replace-apache","status":"publish","type":"post","link":"https:\/\/gulass.cn\/when-nginx-replace-apache.html","title":{"rendered":"nginx \u6216\u5c06\u53d6\u4ee3 apache"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nNGINX \u548c Apache \u4e24\u8005\u90fd\u662f\u4e3b\u6d41\u7684\u5f00\u6e90 web \u670d\u52a1\u5668\uff0c\u4f46\u662f\u636e NGINX \u7684\u9996\u5e2d\u6267\u884c\u5b98 Gus Robertson \u6240\u8a00\uff0c\u4ed6\u4eec\u6709\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\u3002\u6b64\u5916\u8fd8\u6709\u5fae\u8f6f\uff0c\u5176 web \u670d\u52a1\u5668 IIS \u5728\u6d3b\u8dc3\u7f51\u7ad9\u7684\u4efd\u989d\u5728 20 \u5e74\u95f4\u9996\u6b21\u8dcc\u7834 10%\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

NGINX \u5df2\u7ecf\u6210\u4e3a\u7b2c\u4e8c\u5927 web \u670d\u52a1\u5668\u3002\u5b83\u5728\u5f88\u4e45\u4ee5\u524d\u5c31\u5df2\u7ecf\u8d85\u8d8a\u4e86\u5fae\u8f6f IIS\uff0c\u5e76\u4e14\u4e00\u76f4\u5728\u8001\u5927 Apache \u7684\u8eab\u540e\u7a77\u8ffd\u4e0d\u820d\u3002\u4f46\u662f\uff0cNGINX \u7684\u9996\u5e2d\u6267\u884c\u5b98Gus Roberston \u5728\u63a5\u53d7\u91c7\u8bbf\u65f6\u8868\u793a\uff0cApache \u548c NGINX \u7684\u7528\u6237\u7fa4\u4f53\u4e0d\u4e00\u6837\u3002<\/p>\n

\u201c\u6211\u8ba4\u4e3a Apache \u662f\u5f88\u597d\u7684 web \u670d\u52a1\u5668\u3002NGINX \u548c\u5b83\u7684\u4f7f\u7528\u573a\u666f\u4e0d\u540c\uff0c\u201dRobertson \u8bf4\u3002\u201c\u6211\u4eec\u6ca1\u6709\u628a Apache \u5f53\u6210\u7ade\u4e89\u5bf9\u624b\u3002\u6211\u4eec\u7684\u7528\u6237\u4f7f\u7528 NGINX \u6765\u53d6\u4ee3\u786c\u4ef6\u8d1f\u8f7d\u5747\u8861\u5668\u548c\u6784\u5efa\u5fae\u670d\u52a1\uff0c\u8fd9\u4e24\u4e2a\u90fd\u4e0d\u662f Apache \u7684\u957f\u5904\u3002\u201d\u4e8b\u5b9e\u4e0a\uff0cRobertson \u53d1\u73b0\u8bb8\u591a\u7528\u6237\u540c\u65f6\u4f7f\u7528\u4e86\u8fd9\u4e24\u79cd\u5f00\u6e90\u7684 web \u670d\u52a1\u3002\u201c\u7528\u6237\u4f1a\u5728 Apache \u7684\u4e0a\u5c42\u4f7f\u7528 NGINX \u6765\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\u3002\u6211\u4eec\u7684\u67b6\u6784\u5dee\u5f02\u5f88\u5927\uff0c\u6211\u4eec\u53ef\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u5e76\u53d1 web \u670d\u52a1\u3002\u201d\u4ed6\u8fd8\u8868\u793a NGINX \u5728\u4e91\u73af\u5883\u4e2d\u8868\u73b0\u66f4\u4f18\u79c0\u3002\u4ed6\u603b\u7ed3\u8bf4\uff0c\u201c\u6211\u4eec\u662f\u552f\u4e00\u4e00\u4e2a\u4ecd\u7136\u5728\u6301\u7eed\u589e\u957f\u7684 web \u670d\u52a1\u5668\uff0c\u5176\u5b83\u7684 web \u670d\u52a1\u5668\u90fd\u5728\u6162\u6162\u7f29\u5c0f\u4efd\u989d\u3002\u201d<\/p>\n

\"\u4f55\u65f6<\/p>\n

Apache \u662f\u6700\u53d7\u6b22\u8fce\u7684 web \u670d\u52a1\u5668\uff0c\u4e0d\u8fc7 NGINX \u6b63\u9010\u6e10\u589e\u957f\uff0c\u800c\u5fae\u8f6f\u7684 IIS \u51e0\u5341\u5e74\u6765\u9996\u6b21\u8dcc\u7834 10%\u3002<\/em><\/p>\n

\u8fd9\u4e0d\u592a\u51c6\u786e\u3002\u6839\u636e Netcraft \u5341\u6708\u4efd\u7684\u7f51\u7edc\u670d\u52a1\u5668\u8c03\u67e5\uff0cApache \u5f53\u6708\u7684\u6d3b\u8dc3\u7f51\u7ad9\u589e\u52a0\u5f97\u6700\u591a\uff0c\u83b7\u5f97\u4e86 180 \u4e07\u4e2a\u65b0\u7ad9\u70b9\uff0c\u800c NGINX \u589e\u52a0\u4e86 40 \u4e07\u4e2a\u65b0\u7ad9\u70b9\uff0c\u6392\u5728\u7b2c\u4e8c\u4f4d\u3002\u8fd9\u4e9b\u589e\u957f\uff0c\u52a0\u4e0a\u5fae\u8f6f\u635f\u5931\u7684 120 \u4e07\u4e2a\u6d3b\u8dc3\u7ad9\u70b9\uff0c\u5bfc\u81f4\u5fae\u8f6f\u7684\u6d3b\u8dc3\u7f51\u7ad9\u4efd\u989d\u4e0b\u964d\u5230 9.27%\uff0c\u8fd9\u662f\u4ed6\u4eec\u7b2c\u4e00\u6b21\u8dcc\u7834 10%\u3002Apache \u7684\u5e02\u573a\u4efd\u989d\u63d0\u9ad8\u4e86 0.19%\uff0c\u5e76\u7ee7\u7eed\u9886\u8dd1\u5e02\u573a\uff0c\u73b0\u5728\u5750\u62e5 46.3% \u7684\u6d3b\u8dc3\u7ad9\u70b9\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u591a\u5e74\u6765 Apache \u4e00\u76f4\u5728\u7f13\u6162\u4e0b\u964d\uff0c\u800c NGINX \u73b0\u5728\u4e0a\u5347\u5230\u4e86 19%\u3002<\/p>\n

NGINX \u7684\u5f00\u53d1\u8005\u6b63\u5728\u52aa\u529b\u521b\u9020\u4ed6\u4eec\u7684\u6838\u5fc3\u5f00\u653e\uff08open-core \uff09\u7684\u5546\u4e1a web \u670d\u52a1\u5668 \u2014\u2014 NGINX Plus\uff0c\u901a\u8fc7\u4e0d\u65ad\u7684\u6539\u8fdb\u4f7f\u5176\u53d8\u5f97\u66f4\u6709\u7ade\u4e89\u529b\u3002NGINX Plus \u6700\u65b0\u7684\u7248\u672c\u662fNGINX Plus 11 \u7248\uff08R11)\uff0c\u8be5\u670d\u52a1\u5668\u6613\u4e8e\u6269\u5c55\u548c\u81ea\u5b9a\u4e49\uff0c\u5e76\u652f\u6301\u66f4\u5e7f\u6cdb\u7684\u90e8\u7f72\uff0c\u8fd9\u6b21\u6700\u5927\u7684\u8865\u5145\u662f\u52a8\u6001\u6a21\u5757\u7684\u4e8c\u8fdb\u5236\u517c\u5bb9\u6027\u3002\u4e5f\u5c31\u662f\u8bf4\u4e3a\u5f00\u6e90 NGINX \u8f6f\u4ef6\u7f16\u8bd1\u7684\u52a8\u6001\u6a21\u5757\u4e5f\u53ef\u4ee5\u52a0\u8f7d\u5230 NGINX Plus\uff0c\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u5229\u7528\u5927\u91cf\u7684\u7b2c\u4e09\u65b9 NGINX \u6a21\u5757\u6765\u6269\u5c55 NGINX Plus \u7684\u529f\u80fd\uff0c\u501f\u9274\u4e00\u7cfb\u5217\u5f00\u6e90\u548c\u5546\u4e1a\u5316\u751f\u4ea7\u7684\u6a21\u5757\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u57fa\u4e8e\u652f\u6301 NGINX Plus \u7684\u5185\u6838\u521b\u5efa\u81ea\u5b9a\u4e49\u6269\u5c55\u3001\u9644\u52a0\u7ec4\u4ef6\u548c\u65b0\u4ea7\u54c1\u3002<\/p>\n

NGINX Plus R11 \u8fd8\u589e\u5f3a\u4e86\u5176\u5b83\u529f\u80fd\uff1a<\/p>\n