{"id":76700,"date":"2026-02-23T06:34:09","date_gmt":"2026-02-22T22:34:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/76700.html"},"modified":"2026-02-23T06:34:09","modified_gmt":"2026-02-22T22:34:09","slug":"%e4%bb%8e%e9%9b%b6%e6%9e%84%e5%bb%ba%e5%b5%8c%e5%85%a5%e5%bc%8f%e5%aa%92%e4%bd%93%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%9anginx%e6%a8%a1%e5%9d%97%e5%8c%96%e6%89%a9%e5%b1%95%e4%b8%8earm32%e4%ba%a4%e5%8f%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/76700.html","title":{"rendered":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790"},"content":{"rendered":"<h2>\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668&#xff1a;Nginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790<\/h2>\n<p>\u5728\u8fb9\u7f18\u8ba1\u7b97\u548c\u7269\u8054\u7f51\u8bbe\u5907\u5feb\u901f\u53d1\u5c55\u7684\u4eca\u5929&#xff0c;\u5d4c\u5165\u5f0f\u8bbe\u5907\u5bf9\u5b9e\u65f6\u97f3\u89c6\u9891\u5904\u7406\u548c\u6587\u4ef6\u4f20\u8f93\u7684\u9700\u6c42\u65e5\u76ca\u589e\u957f\u3002RV1126\u7b49ARM32\u67b6\u6784\u8bbe\u5907\u56e0\u5176\u4f4e\u529f\u8017\u548c\u9ad8\u96c6\u6210\u5ea6&#xff0c;\u6210\u4e3a\u667a\u80fd\u6444\u50cf\u5934\u3001\u5de5\u4e1a\u7f51\u5173\u548c\u4fbf\u643a\u5f0f\u5a92\u4f53\u7ec8\u7aef\u7684\u7406\u60f3\u9009\u62e9\u3002\u7136\u800c&#xff0c;\u8fd9\u4e9b\u8d44\u6e90\u53d7\u9650\u7684\u73af\u5883\u5bf9\u8f6f\u4ef6\u8f7b\u91cf\u5316\u548c\u6027\u80fd\u4f18\u5316\u63d0\u51fa\u4e86\u6781\u9ad8\u8981\u6c42\u3002Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u6a21\u5757\u5316\u6269\u5c55\u53ef\u4ee5\u8f6c\u53d8\u4e3a\u529f\u80fd\u5f3a\u5927\u7684\u5a92\u4f53\u670d\u52a1\u5668&#xff0c;\u652f\u6301SSL\u52a0\u5bc6\u901a\u4fe1\u3001\u5927\u6587\u4ef6\u4e0a\u4f20\u548c\u5b9e\u65f6\u6d41\u5a92\u4f53\u4f20\u8f93&#xff0c;\u6210\u4e3a\u5d4c\u5165\u5f0f\u573a\u666f\u4e0b\u7684\u4f18\u8d28\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u5d4c\u5165\u5f0f\u5f00\u53d1\u5de5\u7a0b\u5e08\u548c\u6d41\u5a92\u4f53\u670d\u52a1\u5f00\u53d1\u8005\u9762\u4e34\u7684\u6838\u5fc3\u6311\u6218\u5728\u4e8e&#xff0c;\u5982\u4f55\u5c06\u6210\u719f\u7684\u670d\u52a1\u5668\u8f6f\u4ef6\u79fb\u690d\u5230\u7279\u5b9a\u786c\u4ef6\u5e73\u53f0&#xff0c;\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\u7075\u6d3b\u6269\u5c55\u529f\u80fd\u3002ARM32\u5e73\u53f0\u7684\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u4e0ex86\u67b6\u6784\u5b58\u5728\u663e\u8457\u5dee\u5f02&#xff0c;\u4ece\u5de5\u5177\u94fe\u914d\u7f6e\u5230\u4f9d\u8d56\u5e93\u7f16\u8bd1&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u53ef\u80fd\u9047\u5230\u610f\u60f3\u4e0d\u5230\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002\u672c\u6587\u5c06\u4ee5\u5b9e\u6218\u4e3a\u5bfc\u5411&#xff0c;\u6df1\u5165\u89e3\u6790Nginx\u5728ARM32\u8bbe\u5907\u4e0a\u7684\u6a21\u5757\u5316\u6269\u5c55\u4e0e\u4ea4\u53c9\u7f16\u8bd1\u5168\u8fc7\u7a0b&#xff0c;\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u5957\u53ef\u9760\u7684\u65b9\u6cd5\u8bba\u548c\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h3>1. \u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u642d\u5efa\u4e0e\u57fa\u7840\u4f9d\u8d56\u5e93\u5904\u7406<\/h3>\n<p>\u4ea4\u53c9\u7f16\u8bd1\u662f\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u57fa\u7840\u73af\u8282&#xff0c;\u5176\u6838\u5fc3\u5728\u4e8e\u5728x86\u4e3b\u673a\u4e0a\u751f\u6210\u80fd\u5728ARM\u67b6\u6784\u8bbe\u5907\u4e0a\u8fd0\u884c\u7684\u4e8c\u8fdb\u5236\u4ee3\u7801\u3002\u73af\u5883\u642d\u5efa\u7684\u5b8c\u6574\u6027\u76f4\u63a5\u51b3\u5b9a\u4e86\u540e\u7eed\u7f16\u8bd1\u8fc7\u7a0b\u7684\u987a\u5229\u7a0b\u5ea6\u3002Ubuntu 20.04\u4f5c\u4e3a\u7a33\u5b9a\u7684\u5f00\u53d1\u73af\u5883&#xff0c;\u63d0\u4f9b\u4e86\u5b8c\u5584\u7684\u5de5\u5177\u94fe\u652f\u6301&#xff0c;\u662f\u8fdb\u884c\u4ea4\u53c9\u7f16\u8bd1\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<p>\u5de5\u5177\u94fe\u914d\u7f6e\u662f\u6574\u4e2a\u8fc7\u7a0b\u7684\u8d77\u70b9\u3002RV1126 SDK\u63d0\u4f9b\u7684GCC 8.3\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\u9700\u8981\u6b63\u786e\u8bbe\u7f6e\u8def\u5f84\u53d8\u91cf&#xff1a;<\/p>\n<p>export ARCH&#061;arm<br \/>\nexport CROSS_COMPILE&#061;arm-linux-gnueabihf-<br \/>\nexport PATH&#061;&#034;\/path\/to\/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf\/bin\/:$PATH&#034;<\/p>\n<p>\u8fd9\u4e09\u4e2a\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e\u786e\u4fdd\u4e86\u540e\u7eed\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u80fd\u591f\u6b63\u786e\u8c03\u7528ARM\u67b6\u6784\u7684\u7f16\u8bd1\u5de5\u5177\u3002\u503c\u5f97\u6ce8\u610f\u7684\u662f&#xff0c;\u4e0d\u540c\u5382\u5546\u63d0\u4f9b\u7684\u5de5\u5177\u94fe\u53ef\u80fd\u5b58\u5728\u7ec6\u5fae\u5dee\u5f02&#xff0c;\u5efa\u8bae\u59cb\u7ec8\u4f7f\u7528\u8bbe\u5907\u5382\u5546\u63a8\u8350\u7684\u5b98\u65b9\u5de5\u5177\u94fe\u7248\u672c\u3002<\/p>\n<p>\u57fa\u7840\u4f9d\u8d56\u5e93\u7684\u7f16\u8bd1\u9700\u8981\u6309\u7167\u7279\u5b9a\u987a\u5e8f\u8fdb\u884c&#xff1a;OpenSSL \u2192 PCRE \u2192 Zlib\u3002\u8fd9\u4e2a\u987a\u5e8f\u662f\u57fa\u4e8e\u5e93\u4e4b\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\u786e\u5b9a\u7684&#xff0c;\u6539\u53d8\u987a\u5e8f\u53ef\u80fd\u5bfc\u81f4\u7f16\u8bd1\u5931\u8d25\u3002<\/p>\n<p>OpenSSL\u7684\u4ea4\u53c9\u7f16\u8bd1\u9700\u8981\u7279\u522b\u6ce8\u610f\u5e73\u53f0\u9002\u914d\u95ee\u9898&#xff1a;<\/p>\n<p>.\/config no-asm shared &#8211;prefix&#061;$PWD\/__install \\\\<br \/>\n  &#8211;cross-compile-prefix&#061;arm-linux-gnueabihf-<\/p>\n<p>\u8fd9\u91cc\u7684no-asm\u53c2\u6570\u7981\u6b62\u4f7f\u7528\u6c47\u7f16\u4ee3\u7801&#xff0c;\u907f\u514d\u4e86\u67b6\u6784\u76f8\u5173\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u5e38\u89c1\u7684-m64\u9519\u8bef\u9700\u8981\u624b\u52a8\u4fee\u6539Makefile\u6587\u4ef6&#xff0c;\u79fb\u9664\u4e24\u5904-m64\u7f16\u8bd1\u9009\u9879&#xff0c;\u8fd9\u4e2a\u9009\u9879\u662fx86_64\u67b6\u6784\u7279\u6709\u7684&#xff0c;\u5728ARM32\u5e73\u53f0\u4e0a\u4e0d\u88ab\u652f\u6301\u3002<\/p>\n<p>PCRE&#xff08;Perl Compatible Regular Expressions&#xff09;\u5e93\u4e3aNginx\u63d0\u4f9b\u6b63\u5219\u8868\u8fbe\u5f0f\u652f\u6301&#xff1a;<\/p>\n<p>.\/configure &#8211;prefix&#061;$PWD\/__install &#8211;host&#061;arm-linux-gnueabihf \\\\<br \/>\n  CC&#061;arm-linux-gnueabihf-gcc CXX&#061;arm-linux-gnueabihf-g&#043;&#043;<\/p>\n<p>&#8211;host\u53c2\u6570\u660e\u786e\u6307\u5b9a\u4e86\u76ee\u6807\u5e73\u53f0&#xff0c;\u8fd9\u662f\u4ea4\u53c9\u7f16\u8bd1\u4e2d\u7684\u5173\u952e\u914d\u7f6e\u9879\u3002PCRE\u5e93\u7684\u7248\u672c\u517c\u5bb9\u6027\u5f88\u91cd\u8981&#xff0c;\u5efa\u8bae\u4f7f\u75288.45\u7248\u672c&#xff0c;\u8fc7\u65b0\u6216\u8fc7\u65e7\u7684\u7248\u672c\u90fd\u53ef\u80fd\u5f15\u53d1\u672a\u77e5\u95ee\u9898\u3002<\/p>\n<p>Zlib\u5e93\u7684\u5904\u7406\u76f8\u5bf9\u7b80\u5355&#xff0c;\u4f46\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u5fc5\u987b\u6b63\u786e&#xff1a;<\/p>\n<p>CC&#061;arm-linux-gnueabihf-gcc .\/configure &#8211;prefix&#061;$PWD\/_install<\/p>\n<p>\u5b9e\u8df5\u63d0\u793a&#xff1a;\u6bcf\u4e2a\u4f9d\u8d56\u5e93\u7f16\u8bd1\u5b8c\u6210\u540e&#xff0c;\u5efa\u8bae\u4f7f\u7528file\u547d\u4ee4\u68c0\u67e5\u751f\u6210\u7684\u5e93\u6587\u4ef6\u683c\u5f0f&#xff0c;\u786e\u8ba4\u5176\u4e3aARM\u67b6\u6784\u800c\u975ex86\u67b6\u6784\u3002\u4f8b\u5982&#xff1a;file libssl.so.1.1\u5e94\u8be5\u663e\u793a&#034;ARM&#034;\u800c\u4e0d\u662f&#034;x86-64&#034;\u3002<\/p>\n<p>\u8868&#xff1a;\u57fa\u7840\u4f9d\u8d56\u5e93\u7f16\u8bd1\u5173\u952e\u53c2\u6570\u5bf9\u6bd4<\/p>\n<table>\n<tr>\u5e93\u540d\u79f0\u914d\u7f6e\u53c2\u6570\u5173\u952e\u9009\u9879\u5e38\u89c1\u95ee\u9898<\/tr>\n<tbody>\n<tr>\n<td>OpenSSL<\/td>\n<td>.\/config<\/td>\n<td>no-asm shared<\/td>\n<td>-m64\u7f16\u8bd1\u9009\u9879\u51b2\u7a81<\/td>\n<\/tr>\n<tr>\n<td>PCRE<\/td>\n<td>.\/configure<\/td>\n<td>&#8211;host&#061;arm-linux-gnueabihf<\/td>\n<td>\u7248\u672c\u517c\u5bb9\u6027\u95ee\u9898<\/td>\n<\/tr>\n<tr>\n<td>Zlib<\/td>\n<td>CC&#061;arm-linux-gnueabihf-gcc<\/td>\n<td>&#8211;prefix&#061;$PWD\/_install<\/td>\n<td>\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u9519\u8bef<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e09\u4e2a\u57fa\u7840\u5e93\u7f16\u8bd1\u6210\u529f\u540e&#xff0c;\u5c31\u4e3aNginx\u7684\u4ea4\u53c9\u7f16\u8bd1\u5960\u5b9a\u4e86\u575a\u5b9e\u57fa\u7840\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u867d\u7136\u770b\u4f3c\u7b80\u5355&#xff0c;\u4f46\u5b9e\u9645\u64cd\u4f5c\u4e2d\u5f80\u5f80\u4f1a\u9047\u5230\u5404\u79cd\u5de5\u5177\u94fe\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u9700\u8981\u5f00\u53d1\u8005\u6709\u8010\u5fc3\u548c\u7ec6\u81f4\u7684\u8c03\u8bd5\u80fd\u529b\u3002<\/p>\n<h3>2. Nginx\u57fa\u7840\u529f\u80fd\u4ea4\u53c9\u7f16\u8bd1\u4e0e\u95ee\u9898\u89e3\u51b3<\/h3>\n<p>\u5b8c\u6210\u4f9d\u8d56\u5e93\u7f16\u8bd1\u540e&#xff0c;\u5c31\u8fdb\u5165\u4e86Nginx\u672c\u8eab\u7684\u4ea4\u53c9\u7f16\u8bd1\u9636\u6bb5\u3002\u8fd9\u4e2a\u9636\u6bb5\u9700\u8981\u5c06\u524d\u9762\u7f16\u8bd1\u597d\u7684\u4f9d\u8d56\u5e93\u4e0eNginx\u6e90\u7801\u8fdb\u884c\u6574\u5408&#xff0c;\u751f\u6210\u53ef\u5728ARM32\u8bbe\u5907\u4e0a\u8fd0\u884c\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>Nginx\u7684configure\u811a\u672c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u914d\u7f6e\u9009\u9879&#xff0c;\u4ea4\u53c9\u7f16\u8bd1\u65f6\u9700\u8981\u7279\u522b\u5173\u6ce8\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762&#xff1a;<\/p>\n<ul>\n<li>\u7f16\u8bd1\u5668\u6307\u5b9a&#xff1a;\u901a\u8fc7&#8211;with-cc\u548c&#8211;with-cpp\u660e\u786e\u6307\u5b9a\u4ea4\u53c9\u7f16\u8bd1\u5668<\/li>\n<li>\u4f9d\u8d56\u5e93\u8def\u5f84&#xff1a;\u4f7f\u7528&#8211;with-pcre\u3001&#8211;with-zlib\u6307\u5411\u6e90\u7801\u76ee\u5f55\u800c\u975e\u5b89\u88c5\u76ee\u5f55<\/li>\n<li>\u5e73\u53f0\u6807\u8bc6&#xff1a;&#8211;crossbuild&#061;Linux::arm\u544a\u77e5\u914d\u7f6e\u7cfb\u7edf\u76ee\u6807\u5e73\u53f0\u4fe1\u606f<\/li>\n<\/ul>\n<p>\u57fa\u672c\u914d\u7f6e\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>.\/configure &#8211;prefix&#061;$PWD\/__install &#8211;crossbuild&#061;Linux::arm \\\\<br \/>\n  &#8211;with-cc&#061;arm-linux-gnueabihf-gcc \\\\<br \/>\n  &#8211;with-cpp&#061;arm-linux-gnueabihf-cpp \\\\<br \/>\n  &#8211;with-pcre&#061;\/path\/to\/pcre-8.45 \\\\<br \/>\n  &#8211;with-zlib&#061;\/path\/to\/zlib-1.2.13 \\\\<br \/>\n  &#8211;without-http_upstream_zone_module<\/p>\n<p>&#8211;without-http_upstream_zone_module\u662fRV1126\u5e73\u53f0\u4e0a\u7684\u5fc5\u8981\u9009\u9879&#xff0c;\u56e0\u4e3a\u8fd9\u4e2a\u6a21\u5757\u9700\u8981\u4e00\u4e9bARM32\u4e0d\u652f\u6301\u7684\u7cfb\u7edf\u7279\u6027\u3002<\/p>\n<p>\u5728\u5b9e\u9645\u7f16\u8bd1\u8fc7\u7a0b\u4e2d&#xff0c;\u4f1a\u9047\u5230\u591a\u4e2a\u5178\u578b\u7684\u4ea4\u53c9\u7f16\u8bd1\u95ee\u9898&#xff0c;\u9700\u8981\u9010\u4e00\u89e3\u51b3&#xff1a;<\/p>\n<p>\u95ee\u98981&#xff1a;\u7f16\u8bd1\u5668\u68c0\u6d4b\u5931\u8d25\u3002Nginx\u7684\u914d\u7f6e\u811a\u672c\u9ed8\u8ba4\u4f1a\u68c0\u67e5\u7f16\u8bd1\u5668\u6709\u6548\u6027&#xff0c;\u5f53\u9047\u5230\u4ea4\u53c9\u7f16\u8bd1\u5668\u65f6\u53ef\u80fd\u4f1a\u9519\u8bef\u5224\u65ad\u3002\u9700\u8981\u4fee\u6539auto\/cc\/name\u6587\u4ef6&#xff0c;\u6ce8\u91ca\u6389\u9000\u51fa\u8bed\u53e5&#xff1a;<\/p>\n<p>if [ $ngx_found &#061; no ]; then<br \/>\n  echo<br \/>\n  echo $0: error: C compiler $CC is not found<br \/>\n  echo<br \/>\n  # exit 1  \/\/ \u6ce8\u91ca\u6389\u8fd9\u4e00\u884c<br \/>\nfi<\/p>\n<p>\u95ee\u98982&#xff1a;\u6570\u636e\u7c7b\u578b\u5927\u5c0f\u68c0\u6d4b\u9519\u8bef\u3002\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u6d4b\u8bd5\u7a0b\u5e8f\u68c0\u6d4b\u6570\u636e\u7c7b\u578b\u5927\u5c0f&#xff0c;\u9700\u8981\u624b\u52a8\u4fee\u6539auto\/types\/sizeof\u6587\u4ef6&#xff0c;\u5c06\u68c0\u6d4b\u4ee3\u7801\u66ff\u6362\u4e3a\u56fa\u5b9a\u503c&#xff1a;<\/p>\n<p>\/\/ \u5c06\u539f\u6765\u7684\u68c0\u6d4b\u4ee3\u7801\u66ff\u6362\u4e3a<br \/>\nprintf(&#034;%d&#034;, 4);<br \/>\nreturn 0;<\/p>\n<p>\u95ee\u98983&#xff1a;\u539f\u5b50\u64cd\u4f5c\u652f\u6301\u95ee\u9898\u3002ARM32\u67b6\u6784\u9700\u8981\u7279\u6b8a\u7684\u539f\u5b50\u64cd\u4f5c\u5b9e\u73b0&#xff0c;\u9047\u5230ngx_atomic_cmp_set() is not defined\u9519\u8bef\u65f6&#xff0c;\u9700\u8981\u786e\u4fdd&#8211;without-http_upstream_zone_module\u9009\u9879\u5df2\u542f\u7528\u3002<\/p>\n<p>\u95ee\u98984&#xff1a;\u5171\u4eab\u5185\u5b58\u652f\u6301\u914d\u7f6e\u3002System V\u5171\u4eab\u5185\u5b58\u5728\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u4e2d\u9700\u8981\u7279\u6b8a\u5904\u7406&#xff0c;\u4fee\u6539auto\/unix\u6587\u4ef6\u4e2d\u7684\u76f8\u5173\u68c0\u6d4b&#xff1a;<\/p>\n<p>ngx_feature&#061;&#034;System V shared memory&#034;<br \/>\nngx_feature_name&#061;&#034;NGX_HAVE_SYSVSHM&#034;<br \/>\nngx_feature_run&#061;no  \/\/ \u5c06yes\u6539\u4e3ano<\/p>\n<p>\u6280\u672f\u8981\u70b9&#xff1a;Nginx\u7684\u914d\u7f6e\u7cfb\u7edf\u57fa\u4e8e\u81ea\u52a8\u68c0\u6d4b\u673a\u5236&#xff0c;\u4f46\u5728\u4ea4\u53c9\u7f16\u8bd1\u73af\u5883\u4e2d\u8bb8\u591a\u81ea\u52a8\u68c0\u6d4b\u4f1a\u5931\u6548\u3002\u5f00\u53d1\u8005\u9700\u8981\u6df1\u5165\u4e86\u89e3\u914d\u7f6e\u7cfb\u7edf\u7684\u5de5\u4f5c\u539f\u7406&#xff0c;\u624d\u80fd\u6b63\u786e\u7ed5\u8fc7\u8fd9\u4e9b\u68c0\u6d4b\u673a\u5236\u3002<\/p>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u4fee\u6539\u540e&#xff0c;\u6267\u884cmake\u547d\u4ee4\u5e94\u8be5\u80fd\u591f\u987a\u5229\u7f16\u8bd1\u57fa\u7840\u7248\u672c\u7684Nginx\u3002\u7f16\u8bd1\u5b8c\u6210\u540e&#xff0c;\u4f7f\u7528file objs\/nginx\u547d\u4ee4\u68c0\u67e5\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u5e94\u8be5\u663e\u793a\u4e3aARM\u67b6\u6784\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>\u8868&#xff1a;Nginx\u4ea4\u53c9\u7f16\u8bd1\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/p>\n<table>\n<tr>\u95ee\u9898\u73b0\u8c61\u6839\u672c\u539f\u56e0\u89e3\u51b3\u65b9\u6cd5\u6587\u4ef6\u4f4d\u7f6e<\/tr>\n<tbody>\n<tr>\n<td>\u7f16\u8bd1\u5668\u672a\u627e\u5230<\/td>\n<td>\u811a\u672c\u68c0\u6d4b\u903b\u8f91\u9650\u5236<\/td>\n<td>\u6ce8\u91ca\u6389\u9000\u51fa\u8bed\u53e5<\/td>\n<td>auto\/cc\/name<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u7c7b\u578b\u9519\u8bef<\/td>\n<td>\u4ea4\u53c9\u68c0\u6d4b\u5931\u8d25<\/td>\n<td>\u624b\u52a8\u6307\u5b9a\u6570\u636e\u7c7b\u578b\u5927\u5c0f<\/td>\n<td>auto\/types\/sizeof<\/td>\n<\/tr>\n<tr>\n<td>\u539f\u5b50\u64cd\u4f5c\u672a\u5b9a\u4e49<\/td>\n<td>\u5e73\u53f0\u7279\u6027\u5dee\u5f02<\/td>\n<td>\u7981\u7528\u76f8\u5173\u6a21\u5757<\/td>\n<td>\u914d\u7f6e\u9009\u9879<\/td>\n<\/tr>\n<tr>\n<td>\u5171\u4eab\u5185\u5b58\u9519\u8bef<\/td>\n<td>\u7cfb\u7edf\u7279\u6027\u68c0\u6d4b\u5931\u8d25<\/td>\n<td>\u5173\u95ed\u5171\u4eab\u5185\u5b58\u68c0\u6d4b<\/td>\n<td>auto\/unix<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e00\u9636\u6bb5\u7684\u6210\u529f\u6807\u5fd7\u7740\u5df2\u7ecf\u638c\u63e1\u4e86Nginx\u4ea4\u53c9\u7f16\u8bd1\u7684\u6838\u5fc3\u6280\u672f&#xff0c;\u4e3a\u540e\u7eed\u7684\u529f\u80fd\u6269\u5c55\u6253\u4e0b\u4e86\u57fa\u7840\u3002<\/p>\n<h3>3. SSL\u52a0\u5bc6\u529f\u80fd\u96c6\u6210\u4e0e\u9ad8\u7ea7\u6a21\u5757\u6269\u5c55<\/h3>\n<p>\u5728\u57fa\u7840Nginx\u7f16\u8bd1\u6210\u529f\u7684\u57fa\u7840\u4e0a&#xff0c;\u63a5\u4e0b\u6765\u9700\u8981\u589e\u52a0\u5b89\u5168\u901a\u4fe1\u548c\u6269\u5c55\u529f\u80fd\u6a21\u5757\u3002SSL\/TLS\u652f\u6301\u662f\u73b0\u4ee3Web\u670d\u52a1\u7684\u5fc5\u5907\u529f\u80fd&#xff0c;\u800c\u6587\u4ef6\u4e0a\u4f20\u548c\u6d41\u5a92\u4f53\u4f20\u8f93\u5219\u662f\u5a92\u4f53\u670d\u52a1\u5668\u7684\u6838\u5fc3\u80fd\u529b\u3002<\/p>\n<p>OpenSSL\u6df1\u5ea6\u96c6\u6210\u9700\u8981\u91cd\u65b0\u914d\u7f6eNginx&#xff0c;\u6dfb\u52a0SSL\u6a21\u5757\u652f\u6301&#xff1a;<\/p>\n<p>.\/configure [\u539f\u6709\u53c2\u6570] \\\\<br \/>\n  &#8211;with-openssl&#061;\/path\/to\/openssl-1.1.1k \\\\<br \/>\n  &#8211;with-http_ssl_module<\/p>\n<p>\u8fd9\u4e2a\u9636\u6bb5\u4f1a\u9047\u5230\u6700\u68d8\u624b\u7684\u7f16\u8bd1\u95ee\u9898&#xff1a;\u67b6\u6784\u4e0d\u5339\u914d\u9519\u8bef\u3002\u9519\u8bef\u4fe1\u606f\u901a\u5e38\u4e3a&#034;libssl.a: error adding symbols: file format not recognized&#034;&#xff0c;\u8868\u660e\u94fe\u63a5\u7684\u5e93\u6587\u4ef6\u67b6\u6784\u4e0d\u6b63\u786e\u3002<\/p>\n<p>\u95ee\u9898\u7684\u6839\u6e90\u5728\u4e8eNginx\u7684OpenSSL\u96c6\u6210\u673a\u5236&#xff1a;\u5b83\u4f1a\u5c1d\u8bd5\u91cd\u65b0\u7f16\u8bd1OpenSSL&#xff0c;\u4f46\u4f7f\u7528\u7684\u7f16\u8bd1\u53c2\u6570\u4e0d\u6b63\u786e\u3002\u89e3\u51b3\u65b9\u6cd5\u9700\u8981\u4fee\u6539auto\/lib\/openssl\/make\u6587\u4ef6&#xff1a;<\/p>\n<p># \u4fee\u6539\u914d\u7f6e\u547d\u4ee4&#xff0c;\u6dfb\u52a0\u4ea4\u53c9\u7f16\u8bd1\u524d\u7f00<br \/>\n&amp;&amp; .\/config &#8211;prefix&#061;$ngx_prefix no-shared no-threads \\\\<br \/>\n  &#8211;cross-compile-prefix&#061;arm-linux-gnueabihf- \\\\<\/p>\n<p>\u66f4\u5f7b\u5e95\u7684\u505a\u6cd5\u662f\u9884\u5148\u7f16\u8bd1\u597dOpenSSL\u5e93&#xff0c;\u5e76\u6307\u5411\u7f16\u8bd1\u597d\u7684\u5e93\u6587\u4ef6\u800c\u975e\u6e90\u7801\u76ee\u5f55\u3002\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u9700\u8981\u624b\u52a8\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb&#xff0c;\u4f46\u907f\u514d\u4e86Nginx\u81ea\u52a8\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u7684\u5404\u79cd\u95ee\u9898\u3002<\/p>\n<p>\u6a21\u5757\u5316\u6269\u5c55\u662fNginx\u7684\u6838\u5fc3\u4f18\u52bf\u6240\u5728\u3002\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u4e24\u4e2a\u5173\u952e\u6a21\u5757&#xff1a;<\/p>\n<li>nginx-upload-module&#xff1a;\u5904\u7406HTTP\u6587\u4ef6\u4e0a\u4f20&#xff0c;\u652f\u6301\u5927\u6587\u4ef6\u5206\u5757\u4f20\u8f93<\/li>\n<li>nginx-http-flv-module&#xff1a;\u63d0\u4f9bRTMP\/HTTP-FLV\u6d41\u5a92\u4f53\u670d\u52a1&#xff0c;\u652f\u6301\u5b9e\u65f6\u89c6\u9891\u63a8\u6d41<\/li>\n<p>\u6a21\u5757\u6dfb\u52a0\u901a\u8fc7&#8211;add-module\u53c2\u6570\u5b9e\u73b0&#xff1a;<\/p>\n<p>&#8211;add-module&#061;module\/nginx-upload-module-2.3.0 \\\\<br \/>\n&#8211;add-module&#061;module\/nginx-http-flv-module-1.2.12<\/p>\n<p>nginx-http-flv-module\u5b9e\u9645\u4e0a\u662fnginx-rtmp-module\u7684\u589e\u5f3a\u7248&#xff0c;\u63d0\u4f9b\u4e86HTTP-FLV\u534f\u8bae\u652f\u6301&#xff0c;\u66f4\u9002\u5408\u5d4c\u5165\u5f0f\u73af\u5883\u7684\u6d41\u5a92\u4f53\u4f20\u8f93\u3002\u5b83\u652f\u6301\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>RTMP\u76f4\u64ad\u63a8\u6d41\u548c\u62c9\u6d41<\/li>\n<li>HTTP-FLV\u5b9e\u65f6\u64ad\u653e<\/li>\n<li>H.264\/AAC\u7f16\u7801\u652f\u6301<\/li>\n<li>\u5f55\u5236\u548c\u56de\u653e\u529f\u80fd<\/li>\n<\/ul>\n<p>\u6027\u80fd\u8003\u8651&#xff1a;\u5728\u8d44\u6e90\u53d7\u9650\u7684\u5d4c\u5165\u5f0f\u73af\u5883\u4e2d&#xff0c;\u5efa\u8bae\u5408\u7406\u914d\u7f6e\u5de5\u4f5c\u8fdb\u7a0b\u6570\u548c\u8fde\u63a5\u6c60\u5927\u5c0f&#xff0c;\u907f\u514d\u5185\u5b58\u8fc7\u5ea6\u5360\u7528\u3002RV1126\u8bbe\u5907\u901a\u5e38\u914d\u7f6eNginx\u4f7f\u75281-2\u4e2a\u5de5\u4f5c\u8fdb\u7a0b\u5373\u53ef\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u3002<\/p>\n<p>\u8868&#xff1a;Nginx\u6a21\u5757\u529f\u80fd\u5bf9\u6bd4\u4e0e\u9002\u7528\u573a\u666f<\/p>\n<table>\n<tr>\u6a21\u5757\u540d\u79f0\u4e3b\u8981\u529f\u80fd\u8d44\u6e90\u5360\u7528\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>http_ssl_module<\/td>\n<td>SSL\/TLS\u52a0\u5bc6\u901a\u4fe1<\/td>\n<td>\u4e2d\u7b49<\/td>\n<td>\u5b89\u5168\u6570\u636e\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>nginx-upload-module<\/td>\n<td>\u6587\u4ef6\u4e0a\u4f20\u5904\u7406<\/td>\n<td>\u4f4e<\/td>\n<td>\u5927\u6587\u4ef6\u4e0a\u4f20<\/td>\n<\/tr>\n<tr>\n<td>nginx-http-flv-module<\/td>\n<td>\u6d41\u5a92\u4f53\u670d\u52a1<\/td>\n<td>\u9ad8<\/td>\n<td>\u5b9e\u65f6\u97f3\u89c6\u9891\u4f20\u8f93<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u7684\u7ebf\u7a0b\u5e93\u94fe\u63a5\u95ee\u9898\u9700\u8981\u901a\u8fc7\u4fee\u6539objs\/Makefile\u89e3\u51b3&#xff0c;\u5728\u94fe\u63a5\u53c2\u6570\u4e2d\u6dfb\u52a0-lpthread&#xff1a;<\/p>\n<p>LIBS &#061; -ldl -lcrypt -lpthread -L\/path\/to\/openssl\/lib -lssl -lcrypto<\/p>\n<p>\u6700\u540e\u7684\u7f16\u8bd1\u6311\u6218\u662fOpenSSL\u7684-m64\u53c2\u6570\u95ee\u9898\u3002\u7531\u4e8eNginx\u6bcf\u6b21\u90fd\u4f1a\u91cd\u65b0\u7f16\u8bd1OpenSSL&#xff0c;\u9700\u8981\u4e00\u79cd\u6301\u4e45\u5316\u7684\u89e3\u51b3\u65b9\u6848\u3002\u6700\u53ef\u9760\u7684\u65b9\u6cd5\u662f\u5728OpenSSL\u6e90\u7801\u4e2d\u4fee\u6539Configure\u6587\u4ef6&#xff0c;\u6c38\u4e45\u79fb\u9664ARM32\u67b6\u6784\u7684-m64\u7f16\u8bd1\u9009\u9879\u3002<\/p>\n<p>\u5b8c\u6210\u6240\u6709\u4fee\u6539\u540e&#xff0c;\u6267\u884cmake\u547d\u4ee4\u5e94\u8be5\u80fd\u591f\u751f\u6210\u5b8c\u6574\u7684Nginx\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u5305\u542b\u6240\u6709\u9700\u8981\u7684\u529f\u80fd\u6a21\u5757\u3002\u4f7f\u7528.\/objs\/nginx -V\u547d\u4ee4\u53ef\u4ee5\u9a8c\u8bc1\u7f16\u8bd1\u7ed3\u679c&#xff0c;\u8f93\u51fa\u5e94\u663e\u793a\u6240\u6709\u5df2\u542f\u7528\u7684\u6a21\u5757\u3002<\/p>\n<h3>4. \u7cfb\u7edf\u96c6\u6210\u4e0e\u6027\u80fd\u4f18\u5316\u7b56\u7565<\/h3>\n<p>\u7f16\u8bd1\u5b8c\u6210\u7684Nginx\u9700\u8981\u7ecf\u8fc7\u6b63\u786e\u7684\u90e8\u7f72\u548c\u914d\u7f6e\u624d\u80fd\u5728\u76ee\u6807\u8bbe\u5907\u4e0a\u7a33\u5b9a\u8fd0\u884c\u3002\u7cfb\u7edf\u96c6\u6210\u6d89\u53ca\u6587\u4ef6\u90e8\u7f72\u3001\u73af\u5883\u914d\u7f6e\u3001\u542f\u52a8\u811a\u672c\u7f16\u5199\u7b49\u591a\u4e2a\u73af\u8282&#xff0c;\u6bcf\u4e2a\u73af\u8282\u90fd\u9700\u8981\u9488\u5bf9\u5d4c\u5165\u5f0f\u73af\u5883\u8fdb\u884c\u7279\u6b8a\u4f18\u5316\u3002<\/p>\n<p>\u6587\u4ef6\u90e8\u7f72\u9700\u8981\u5c06\u7f16\u8bd1\u751f\u6210\u7684\u4ee5\u4e0b\u6587\u4ef6\u590d\u5236\u5230\u76ee\u6807\u8bbe\u5907&#xff1a;<\/p>\n<ul>\n<li>objs\/nginx&#xff1a;\u4e3b\u7a0b\u5e8f\u6587\u4ef6<\/li>\n<li>conf\/\u76ee\u5f55\u4e0b\u7684\u914d\u7f6e\u6587\u4ef6<\/li>\n<li>\u4f9d\u8d56\u7684\u5e93\u6587\u4ef6&#xff08;\u5982libpcre\u3001libssl\u7b49&#xff09;<\/li>\n<\/ul>\n<p>\u5efa\u8bae\u4f7f\u7528\u9759\u6001\u94fe\u63a5\u7f16\u8bd1\u51cf\u5c11\u8fd0\u884c\u65f6\u4f9d\u8d56&#xff1a;<\/p>\n<p>.\/configure [\u5176\u4ed6\u53c2\u6570] &#8211;with-ld-opt&#061;&#034;-static&#034;<\/p>\n<p>\u9759\u6001\u7f16\u8bd1\u4f1a\u663e\u8457\u589e\u52a0\u4e8c\u8fdb\u5236\u6587\u4ef6\u5927\u5c0f&#xff0c;\u4f46\u907f\u514d\u4e86\u76ee\u6807\u8bbe\u5907\u4e0a\u5e93\u6587\u4ef6\u7248\u672c\u517c\u5bb9\u6027\u95ee\u9898\u3002\u5bf9\u4e8e\u5b58\u50a8\u7a7a\u95f4\u6709\u9650\u7684\u5d4c\u5165\u5f0f\u8bbe\u5907&#xff0c;\u9700\u8981\u5728\u5927\u5c0f\u548c\u4fbf\u5229\u6027\u4e4b\u95f4\u505a\u51fa\u6743\u8861\u3002<\/p>\n<p>\u5185\u5b58\u4f18\u5316\u914d\u7f6e\u662f\u5d4c\u5165\u5f0f\u73af\u5883\u7684\u5173\u952e\u3002RV1126\u901a\u5e38\u53ea\u6709512MB-1GB\u5185\u5b58&#xff0c;\u9700\u8981\u7cbe\u7ec6\u8c03\u6574Nginx\u914d\u7f6e&#xff1a;<\/p>\n<p># \u5de5\u4f5c\u8fdb\u7a0b\u914d\u7f6e<br \/>\nworker_processes 1;  # \u5355\u8fdb\u7a0b\u8282\u7701\u5185\u5b58<\/p>\n<p># \u8fde\u63a5\u6570\u9650\u5236<br \/>\nevents {<br \/>\n    worker_connections 512;  # \u6839\u636e\u5b9e\u9645\u9700\u6c42\u8c03\u6574<br \/>\n}<\/p>\n<p># \u7f13\u51b2\u533a\u4f18\u5316<br \/>\nhttp {<br \/>\n    client_body_buffer_size 16K;<br \/>\n    client_header_buffer_size 1k;<br \/>\n    client_max_body_size 10m;  # \u9650\u5236\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f<br \/>\n}<\/p>\n<p>\u6d41\u5a92\u4f53\u670d\u52a1\u914d\u7f6e\u9700\u8981\u9488\u5bf9\u5b9e\u65f6\u6027\u8981\u6c42\u8fdb\u884c\u4f18\u5316&#xff1a;<\/p>\n<p>rtmp {<br \/>\n    server {<br \/>\n        listen 1935;<br \/>\n        application live {<br \/>\n            live on;<br \/>\n            meta copy;  # \u590d\u5236\u5143\u6570\u636e\u51cf\u5c11\u5904\u7406\u5f00\u9500<br \/>\n            # \u6743\u9650\u63a7\u5236\u914d\u7f6e<br \/>\n            allow publish 192.168.1.0\/24;<br \/>\n            deny publish all;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6587\u4ef6\u4e0a\u4f20\u6a21\u5757\u914d\u7f6e\u9700\u8981\u5e73\u8861\u6027\u80fd\u548c\u53ef\u9760\u6027&#xff1a;<\/p>\n<p>location \/upload {<br \/>\n    # \u542f\u7528\u4e0a\u4f20\u6a21\u5757<br \/>\n    upload_pass \/upload_handler;<br \/>\n    upload_store \/tmp\/nginx_upload;<br \/>\n    upload_store_access user:rw group:rw all:rw;<\/p>\n<p>    # \u9650\u5236\u6587\u4ef6\u5927\u5c0f\u548c\u8d85\u65f6\u65f6\u95f4<br \/>\n    upload_max_file_size 100m;<br \/>\n    upload_connect_timeout 60s;<br \/>\n    upload_read_timeout 60s;<br \/>\n}<\/p>\n<p>\u7a33\u5b9a\u6027\u5efa\u8bae&#xff1a;\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u90e8\u7f72\u524d&#xff0c;\u52a1\u5fc5\u8fdb\u884c\u957f\u65f6\u95f4\u7684\u538b\u529b\u6d4b\u8bd5\u3002\u5d4c\u5165\u5f0f\u8bbe\u5907\u7684\u70ed\u91cf\u79ef\u7d2f\u548c\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898\u53ef\u80fd\u5728\u957f\u65f6\u95f4\u8fd0\u884c\u540e\u624d\u4f1a\u663e\u73b0\u3002\u5efa\u8bae\u4f7f\u7528\u5de5\u5177\u5982autocannon\u6216wrk\u8fdb\u884c\u5e76\u53d1\u6d4b\u8bd5\u3002<\/p>\n<p>\u76d1\u63a7\u4e0e\u7ef4\u62a4\u7b56\u7565\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528Nginx\u5185\u7f6e\u7684stub_status\u6a21\u5757\u76d1\u63a7\u670d\u52a1\u72b6\u6001<\/li>\n<li>\u914d\u7f6e\u65e5\u5fd7\u8f6e\u8f6c\u9632\u6b62\u65e5\u5fd7\u6587\u4ef6\u5360\u6ee1\u5b58\u50a8\u7a7a\u95f4<\/li>\n<li>\u8bbe\u7f6e\u770b\u95e8\u72d7\u8fdb\u7a0b\u76d1\u63a7Nginx\u670d\u52a1\u72b6\u6001<\/li>\n<\/ul>\n<p>\u8868&#xff1a;RV1126\u5e73\u53f0Nginx\u6027\u80fd\u4f18\u5316\u53c2\u6570\u5efa\u8bae<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u9ed8\u8ba4\u503c\u4f18\u5316\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>worker_processes<\/td>\n<td>auto<\/td>\n<td>1<\/td>\n<td>\u5355\u8fdb\u7a0b\u51cf\u5c11\u4e0a\u4e0b\u6587\u5207\u6362<\/td>\n<\/tr>\n<tr>\n<td>worker_connections<\/td>\n<td>1024<\/td>\n<td>512<\/td>\n<td>\u9650\u5236\u5e76\u53d1\u8fde\u63a5\u6570<\/td>\n<\/tr>\n<tr>\n<td>keepalive_timeout<\/td>\n<td>75s<\/td>\n<td>30s<\/td>\n<td>\u7f29\u77ed\u4fdd\u6301\u8fde\u63a5\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td>client_body_buffer_size<\/td>\n<td>8k\/16k<\/td>\n<td>16k<\/td>\n<td>\u4f18\u5316\u5185\u5b58\u4f7f\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b8c\u6210\u6240\u6709\u914d\u7f6e\u540e&#xff0c;\u4f7f\u7528\u7cfb\u7edf\u670d\u52a1\u65b9\u5f0f\u542f\u52a8Nginx&#xff1a;<\/p>\n<p># \u521b\u5efa\u7cfb\u7edf\u670d\u52a1\u6587\u4ef6<br \/>\ncat &gt; \/etc\/systemd\/system\/nginx.service &lt;&lt; EOF<br \/>\n[Unit]<br \/>\nDescription&#061;NGINX HTTP Server<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nType&#061;forking<br \/>\nExecStartPre&#061;\/usr\/local\/nginx\/sbin\/nginx -t<br \/>\nExecStart&#061;\/usr\/local\/nginx\/sbin\/nginx<br \/>\nExecReload&#061;\/usr\/local\/nginx\/sbin\/nginx -s reload<br \/>\nExecStop&#061;\/usr\/local\/nginx\/sbin\/nginx -s stop<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<br \/>\nEOF<\/p>\n<p># \u542f\u7528\u5e76\u542f\u52a8\u670d\u52a1<br \/>\nsystemctl enable nginx<br \/>\nsystemctl start nginx<\/p>\n<p>\u5728\u5b9e\u9645\u90e8\u7f72\u8fc7\u7a0b\u4e2d&#xff0c;\u6211\u53d1\u73b0\u6700\u5e38\u9047\u5230\u7684\u95ee\u9898\u5f80\u5f80\u662f\u6743\u9650\u548c\u8def\u5f84\u914d\u7f6e\u9519\u8bef\u3002\u5efa\u8bae\u4f7f\u7528nginx -t\u6d4b\u8bd5\u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5&#xff0c;\u786e\u4fdd\u6240\u6709\u8def\u5f84\u90fd\u5b58\u5728\u4e14\u5177\u6709\u9002\u5f53\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u56db\u4e2a\u9636\u6bb5\u7684\u7cfb\u7edf\u5316\u5de5\u4f5c&#xff0c;\u6211\u4eec\u6210\u529f\u6784\u5efa\u4e86\u4e00\u4e2a\u9488\u5bf9ARM32\u5d4c\u5165\u5f0f\u8bbe\u5907\u4f18\u5316\u7684Nginx\u5a92\u4f53\u670d\u52a1\u5668&#xff0c;\u5177\u5907\u4e86\u5b89\u5168\u901a\u4fe1\u3001\u5927\u6587\u4ef6\u5904\u7406\u548c\u5b9e\u65f6\u6d41\u5a92\u4f53\u7b49\u6838\u5fc3\u529f\u80fd\u3002\u8fd9\u79cd\u65b9\u6848\u4e0d\u4ec5\u9002\u7528\u4e8eRV1126\u5e73\u53f0&#xff0c;\u4e5f\u53ef\u4ee5\u63a8\u5e7f\u5230\u5176\u4ed6ARM\u67b6\u6784\u7684\u5d4c\u5165\u5f0f\u8bbe\u5907\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668&#xff1a;Nginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790<br \/>\n\u5728\u8fb9\u7f18\u8ba1\u7b97\u548c\u7269\u8054\u7f51\u8bbe\u5907\u5feb\u901f\u53d1\u5c55\u7684\u4eca\u5929&#xff0c;\u5d4c\u5165\u5f0f\u8bbe\u5907\u5bf9\u5b9e\u65f6\u97f3\u89c6\u9891\u5904\u7406\u548c\u6587\u4ef6\u4f20\u8f93\u7684\u9700\u6c42\u65e5\u76ca\u589e\u957f\u3002RV1126\u7b49ARM32\u67b6\u6784\u8bbe\u5907\u56e0\u5176\u4f4e\u529f\u8017\u548c\u9ad8\u96c6\u6210\u5ea6&#xff0c;\u6210\u4e3a\u667a\u80fd\u6444\u50cf\u5934\u3001\u5de5\u4e1a\u7f51\u5173\u548c\u4fbf\u643a\u5f0f\u5a92\u4f53\u7ec8\u7aef\u7684\u7406\u60f3\u9009\u62e9\u3002\u7136\u800c&#xff0c;\u8fd9\u4e9b\u8d44\u6e90\u53d7\u9650\u7684\u73af\u5883\u5bf9\u8f6f\u4ef6\u8f7b\u91cf\u5316\u548c\u6027\u80fd\u4f18\u5316\u63d0\u51fa\u4e86\u6781\u9ad8\u8981\u6c42\u3002Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u6a21\u5757\u5316\u6269\u5c55\u53ef\u4ee5\u8f6c\u53d8\u4e3a\u529f\u80fd\u5f3a\u5927\u7684\u5a92\u4f53\u670d<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8287,8286,8288,117],"topic":[],"class_list":["post-76700","post","type-post","status-publish","format-standard","hentry","category-server","tag-arm32","tag-8286","tag-8288","tag-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/76700.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668&#xff1a;Nginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 \u5728\u8fb9\u7f18\u8ba1\u7b97\u548c\u7269\u8054\u7f51\u8bbe\u5907\u5feb\u901f\u53d1\u5c55\u7684\u4eca\u5929&#xff0c;\u5d4c\u5165\u5f0f\u8bbe\u5907\u5bf9\u5b9e\u65f6\u97f3\u89c6\u9891\u5904\u7406\u548c\u6587\u4ef6\u4f20\u8f93\u7684\u9700\u6c42\u65e5\u76ca\u589e\u957f\u3002RV1126\u7b49ARM32\u67b6\u6784\u8bbe\u5907\u56e0\u5176\u4f4e\u529f\u8017\u548c\u9ad8\u96c6\u6210\u5ea6&#xff0c;\u6210\u4e3a\u667a\u80fd\u6444\u50cf\u5934\u3001\u5de5\u4e1a\u7f51\u5173\u548c\u4fbf\u643a\u5f0f\u5a92\u4f53\u7ec8\u7aef\u7684\u7406\u60f3\u9009\u62e9\u3002\u7136\u800c&#xff0c;\u8fd9\u4e9b\u8d44\u6e90\u53d7\u9650\u7684\u73af\u5883\u5bf9\u8f6f\u4ef6\u8f7b\u91cf\u5316\u548c\u6027\u80fd\u4f18\u5316\u63d0\u51fa\u4e86\u6781\u9ad8\u8981\u6c42\u3002Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u6a21\u5757\u5316\u6269\u5c55\u53ef\u4ee5\u8f6c\u53d8\u4e3a\u529f\u80fd\u5f3a\u5927\u7684\u5a92\u4f53\u670d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/76700.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-22T22:34:09+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76700.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/76700.html\",\"name\":\"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-22T22:34:09+00:00\",\"dateModified\":\"2026-02-22T22:34:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/76700.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/76700.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/76700.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/76700.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668&#xff1a;Nginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 \u5728\u8fb9\u7f18\u8ba1\u7b97\u548c\u7269\u8054\u7f51\u8bbe\u5907\u5feb\u901f\u53d1\u5c55\u7684\u4eca\u5929&#xff0c;\u5d4c\u5165\u5f0f\u8bbe\u5907\u5bf9\u5b9e\u65f6\u97f3\u89c6\u9891\u5904\u7406\u548c\u6587\u4ef6\u4f20\u8f93\u7684\u9700\u6c42\u65e5\u76ca\u589e\u957f\u3002RV1126\u7b49ARM32\u67b6\u6784\u8bbe\u5907\u56e0\u5176\u4f4e\u529f\u8017\u548c\u9ad8\u96c6\u6210\u5ea6&#xff0c;\u6210\u4e3a\u667a\u80fd\u6444\u50cf\u5934\u3001\u5de5\u4e1a\u7f51\u5173\u548c\u4fbf\u643a\u5f0f\u5a92\u4f53\u7ec8\u7aef\u7684\u7406\u60f3\u9009\u62e9\u3002\u7136\u800c&#xff0c;\u8fd9\u4e9b\u8d44\u6e90\u53d7\u9650\u7684\u73af\u5883\u5bf9\u8f6f\u4ef6\u8f7b\u91cf\u5316\u548c\u6027\u80fd\u4f18\u5316\u63d0\u51fa\u4e86\u6781\u9ad8\u8981\u6c42\u3002Nginx\u4f5c\u4e3a\u9ad8\u6027\u80fd\u7684Web\u670d\u52a1\u5668&#xff0c;\u901a\u8fc7\u6a21\u5757\u5316\u6269\u5c55\u53ef\u4ee5\u8f6c\u53d8\u4e3a\u529f\u80fd\u5f3a\u5927\u7684\u5a92\u4f53\u670d","og_url":"https:\/\/www.wsisp.com\/helps\/76700.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-22T22:34:09+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/76700.html","url":"https:\/\/www.wsisp.com\/helps\/76700.html","name":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-22T22:34:09+00:00","dateModified":"2026-02-22T22:34:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/76700.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/76700.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/76700.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece\u96f6\u6784\u5efa\u5d4c\u5165\u5f0f\u5a92\u4f53\u670d\u52a1\u5668\uff1aNginx\u6a21\u5757\u5316\u6269\u5c55\u4e0eARM32\u4ea4\u53c9\u7f16\u8bd1\u5b9e\u6218\u89e3\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=76700"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/76700\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=76700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=76700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=76700"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=76700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}