{"id":1269,"date":"2022-01-17T14:16:53","date_gmt":"2022-01-17T06:16:53","guid":{"rendered":"http:\/\/www.haoht.com.cn\/?p=1269"},"modified":"2022-01-17T14:16:53","modified_gmt":"2022-01-17T06:16:53","slug":"nginx%e5%ae%89%e8%a3%85%e5%8f%8a%e9%85%8d%e7%bd%ae%ef%bc%88%e4%ba%b2%e6%b5%8b%e5%8f%af%e8%a1%8c%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.haoht.com.cn\/1269\/","title":{"rendered":"nginx\u5b89\u88c5\u53ca\u914d\u7f6e\uff08\u4eb2\u6d4b\u53ef\u884c\uff09"},"content":{"rendered":"
<\/p>\n
\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/nginx.org\/en\/download.html<\/p>\n
<\/p>\n
\u5b89\u88c5<\/p>\n
\u4e0b\u8f7d\u540e\u89e3\u538b\uff08\u5207\u8bb0\u4e0d\u80fd\u542b\u6709\u4e2d\u6587\u8def\u5f84\uff01\uff01\uff09\uff0c\u6587\u4ef6\u7ed3\u6784\u5982\u56fe\uff08\u6211\u89e3\u538b\u7684\u8def\u5f84\u5c31\u6709\u4e2d\u6587\uff0c\u8bb0\u5f97\u62f7\u8d1d\u653e\u7f6e\u4e8e\u82f1\u6587\u76ee\u5f55\u4e0b\u5373\u53ef\uff01\uff09\uff1a<\/p>\n
\u5728 nginx \u5b89\u88c5\u8def\u5f84\u4e0b \u6253\u5f00\uff1a..\\ conf\\nginx.conf\u00a0 \uff08\u9700\u8981\u5230\u5176\u8def\u5f84\u4e0b\u53bb\u627e\uff09<\/p>\n
\u7528 \u8bb0\u4e8b\u672c\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\uff0c\u8fdb\u884c\u7aef\u53e3\u8bbe\u7f6e<\/p>\n
<\/p>\n
\u4e24\u79cd\u65b9\u6cd5\uff1a<\/p>\n
<\/p>\n
1\uff09 \u76f4\u63a5\u53cc\u51fb\u8be5\u76ee\u5f55\u4e0b\u7684”nginx.exe”\uff0c\u5373\u53ef\u542f\u52a8nginx\u670d\u52a1\u5668\uff1b<\/p>\n
2\uff09 \u547d\u4ee4\u884c\u8fdb\u5165\u8be5\u6587\u4ef6\u5939\uff0c\u6267\u884cstart nginx\u547d\u4ee4\uff0c\u4e5f\u4f1a\u76f4\u63a5\u542f\u52a8nginx\u670d\u52a1\u5668\u3002<\/p>\n
\u547d\u4ee4\u884c\u8fdb\u5165\u8be5\u6587\u4ef6\u5939\uff0c\u6267\u884cstart nginx\u547d\u4ee4\uff0c\u4e5f\u4f1a\u542f\u52a8nginx\u670d\u52a1\u5668\u3002<\/p>\n
\u4f7f\u7528 Win+R\u6253\u5f00\u8fd0\u884c\uff0c\u8f93\u5165cmd\uff0c\u7136\u540e\u6309Enter<\/p>\n
\u9996\u5148\u8fdb\u5165nigix\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n
\u542f\u52a8\uff1astart nginx.exe<\/p>\n
\u505c\u6b62\uff1anginx.exe -s stop<\/p>\n
\u91cd\u65b0\u52a0\u8f7d\uff1anginx.exe -s reload<\/p>\n
<\/p>\n
\u90a3\u4e48\u600e\u4e48\u77e5\u9053\u81ea\u5df1\u7684nginx\u662f\u5426\u542f\u52a8\u6210\u529f\uff1a\u6253\u5f00\u4f60\u7684\u7ba1\u7406\u5668\uff0c\u5982\u5728\u8fdb\u7a0b\u4e2d\u770b\u5230\u4e24\u4e2anginx\u8bf4\u660e\u542f\u52a8\u6210\u529f<\/p>\n
<\/p>\n
\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u5730\u5740\uff1ahttp:\/\/localhost:8080 \uff08\u56e0\u4e3a\u6211\u4eec\u524d\u9762\u914d\u7f6e\u4e868080\u7aef\u53e3\uff09\uff0c\u8bbf\u95ee\u9875\u9762\uff0c\u51fa\u73b0\u5982\u4e0b\u9875\u9762\u8868\u793a\u8bbf\u95ee\u6210\u529f\u3002<\/p>\n
<\/p>\n
<\/p>\n
<\/p>\n
<\/td>\n<\/tr>\n | ||
<\/td>\n | \n
|