{"id":28986,"date":"2025-04-20T05:00:56","date_gmt":"2025-04-19T21:00:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/28986.html"},"modified":"2025-04-20T05:00:56","modified_gmt":"2025-04-19T21:00:56","slug":"rtmp%e6%8e%a8%e6%b5%81%e6%9c%8d%e5%8a%a1%e5%99%a8nginx%e5%9c%a8linux%e4%b8%8a%e7%9a%84%e7%bc%96%e8%af%91%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/28986.html","title":{"rendered":"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72"},"content":{"rendered":"<p>RTMP&#xff08;Real-Time Messaging Protocol&#xff09;\u63a8\u6d41\u786e\u5b9e\u9700\u8981\u670d\u52a1\u5668\u652f\u6301\u200c\u3002RTMP\u63a8\u6d41\u670d\u52a1\u5668\u7684\u4e3b\u8981\u529f\u80fd\u662f\u63a5\u6536\u6765\u81ea\u63a8\u6d41\u5ba2\u6237\u7aef\u7684\u6570\u636e\u6d41&#xff0c;\u5bf9\u5176\u8fdb\u884c\u5904\u7406\u548c\u8f6c\u53d1\u3002\u670d\u52a1\u5668\u4f1a\u6839\u636eRTMP\u534f\u8bae\u4e0e\u5ba2\u6237\u7aef\u5efa\u7acb\u8fde\u63a5&#xff0c;\u5904\u7406\u63a8\u6d41\u6570\u636e&#xff08;\u5982\u8f6c\u7801\u3001\u5f55\u5236\u7b49&#xff09;&#xff0c;\u7136\u540e\u5c06\u5904\u7406\u540e\u7684\u6570\u636e\u6d41\u53d1\u9001\u7ed9\u89c2\u770b\u5ba2\u6237\u7aef\u3002RTMP\u63a8\u6d41\u670d\u52a1\u5668\u7684\u597d\u5904\u5728\u4e8e\u652f\u6301\u9ad8\u6027\u80fd\u3001\u4f4e\u5ef6\u8fdf\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5728\u7ebf\u76f4\u64ad\u3001\u89c6\u9891\u4f1a\u8bae\u3001\u5b9e\u65f6\u76d1\u63a7\u7b49\u573a\u666f\u200c1\u3002<\/p>\n<h4>RTMP\u63a8\u6d41\u670d\u52a1\u5668\u7684\u5177\u4f53\u4f5c\u7528\u548c\u597d\u5904<\/h4>\n<li>\u200c\u63a5\u6536\u548c\u5904\u7406\u63a8\u6d41\u6570\u636e\u200c&#xff1a;RTMP\u63a8\u6d41\u670d\u52a1\u5668\u63a5\u6536\u6765\u81ea\u63a8\u6d41\u5ba2\u6237\u7aef\u7684\u97f3\u89c6\u9891\u6570\u636e\u6d41&#xff0c;\u5bf9\u5176\u8fdb\u884c\u5904\u7406\u548c\u8f6c\u53d1\u3002\u670d\u52a1\u5668\u53ef\u4ee5\u5bf9\u63a8\u6d41\u6570\u636e\u8fdb\u884c\u8f6c\u7801\u3001\u5f55\u5236\u7b49\u64cd\u4f5c&#xff0c;\u786e\u4fdd\u6570\u636e\u7684\u7a33\u5b9a\u4f20\u8f93\u200c1\u3002<\/li>\n<li>\u200c\u4f4e\u5ef6\u8fdf\u548c\u9ad8\u6027\u80fd\u4f20\u8f93\u200c&#xff1a;RTMP\u534f\u8bae\u652f\u6301\u9ad8\u6027\u80fd\u3001\u4f4e\u5ef6\u8fdf\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93&#xff0c;\u80fd\u591f\u6ee1\u8db3\u9ad8\u5e76\u53d1\u3001\u4f4e\u5ef6\u8fdf\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\u9700\u6c42&#xff0c;\u63d0\u4f9b\u7a33\u5b9a\u53ef\u9760\u7684\u670d\u52a1\u200c1\u3002<\/li>\n<li>\u200c\u591a\u79cd\u63a8\u6d41\u5ba2\u6237\u7aef\u652f\u6301\u200c&#xff1a;RTMP\u63a8\u6d41\u670d\u52a1\u5668\u652f\u6301\u591a\u79cd\u63a8\u6d41\u5ba2\u6237\u7aef&#xff0c;\u5982\u5404\u79cd\u76f4\u64ad\u8f6f\u4ef6\u548c\u786c\u4ef6\u8bbe\u5907&#xff0c;\u589e\u52a0\u4e86\u5176\u5e94\u7528\u7684\u5e7f\u6cdb\u6027\u548c\u7075\u6d3b\u6027\u200c<\/li>\n<p>\u5b9e\u73b0RTMP\u63a8\u6d41\u670d\u52a1&#xff1a;Nginx\u90e8\u7f72&#xff0c;\u5e76\u5e26\u5165ginx-http-flv-module<\/p>\n<p>\u91c7\u96c6\u677f\u5b50\u4e0a\u7684\u6444\u50cf\u5934\u89c6\u9891\u6d41&#xff0c;\u4f7f\u7528gstreamer\/ffmpeg\u8fdb\u884cRTMP\u63a8\u6d41\u5230\u677f\u5b50\u4e0a\u7684nginx\u670d\u52a1\u5668&#xff08;nginx\u901a\u8fc7rtmp\u6a21\u5757\u63d0\u4f9brtmp\u670d\u52a1&#xff09;&#xff0c;\u7136\u540e\u5728\u540c\u4e2a\u5c40\u57df\u7f51\u5185\u4f7f\u7528vlc\u64ad\u653e\u5668&#xff08;\u6216\u5176\u4ed6\u5ba2\u6237\u7aef&#xff09;\u4ecenginx\u670d\u52a1\u5668\u83b7\u53d6\u8be5\u5b9e\u65f6\u89c6\u9891\u6d41\u3002 nginx-http-flv-module \u662f\u4e00\u4e2a\u57fa\u4e8e nginx-rtmp-module \u5f00\u53d1\u7684\u5a92\u4f53\u6d41\u670d\u52a1\u5668\u6a21\u5757\u3002\u8be5\u9879\u76ee\u7684\u4e3b\u8981\u7f16\u7a0b\u8bed\u8a00\u662fC\u8bed\u8a00&#xff0c;\u5b83\u6269\u5c55\u4e86 nginx-rtmp-module \u7684\u529f\u80fd&#xff0c;\u4f7f\u5176\u652f\u6301HTTP-FLV\u534f\u8bae&#xff0c;\u4ece\u800c\u63d0\u4f9b\u66f4\u9ad8\u6548\u7684\u6d41\u5a92\u4f53\u4f20\u8f93\u670d\u52a1\u3002 \u00a0<\/p>\n<p>1.configure failed\u95ee\u9898&#xff1a; .\/configure: error: C compiler \/opt\/bstos\/linux-23\/sysroots\/x86_64-bstsdk-linux\/usr\/bin\/aarch64-bst-linux\/aarch64-bst-linux-gcc is not found<\/p>\n<p>congigure\u6587\u4ef6\u589e\u52a0&#xff1a; CC&#061;gcc export CC<\/p>\n<p>2&#xff0c;.configure failed\u95ee\u9898,\u5b89\u88c5 pcre apt update apt install libpcre3 libpcre3-dev<\/p>\n<p>3,.configure failed\u95ee\u9898,\u5b89\u88c5zlib apt-get update apt-get install zlib1g zlib1g-dev<\/p>\n<p> 4&#xff0c;.configure&#xff1a;ok \u6839\u636econfiguration\u81ea\u52a8\u751f\u6210ngx_auto_config.h\u529f\u80fd\u914d\u7f6e\u6587\u4ef6&#xff0c;\u529f\u80fd\u5b8f\u7684\u5f00\u5173 cd nginx-1.18.0 .\/configure &#8211;prefix&#061;\/usr\/local\/nginx &#8211;with-threads &#8211;with-file-aio &#8211;add-module&#061;..\/nginx-http-flv-module &#8211;with-http_ssl_module &#8211;with-http_flv_module &#8211;with-pcre&#061;\/path\/to\/pcre &#8211;with-zlib&#061;\/path\/to\/zlib &#8211;with-openssl&#061;\/path\/to\/openssl &#8211;with-ld-opt&#061;&#034;-static&#034; &#8211;with-http_dav_module &#8211;with-http_degradation_module \u00a0&#8211;with-http_realip_module &#8211;with-http_stub_status_module<\/p>\n<p> Configuration summary \u00a0 &#043; using threads \u00a0 &#043; using PCRE library: \/path\/to\/pcre \u00a0 &#043; using OpenSSL library: \/path\/to\/openssl \u00a0 &#043; using zlib library: \/path\/to\/zlib<\/p>\n<p>\u00a0 nginx path prefix: &#034;\/usr\/local\/nginx&#034; \u00a0 nginx binary file: &#034;\/usr\/local\/nginx\/sbin\/nginx&#034; \u00a0 nginx modules path: &#034;\/usr\/local\/nginx\/modules&#034; \u00a0 nginx configuration prefix: &#034;\/usr\/local\/nginx\/conf&#034; \u00a0 nginx configuration file: &#034;\/usr\/local\/nginx\/conf\/nginx.conf&#034; \u00a0 nginx pid file: &#034;\/usr\/local\/nginx\/logs\/nginx.pid&#034; \u00a0 nginx error log file: &#034;\/usr\/local\/nginx\/logs\/error.log&#034; \u00a0 nginx http access log file: &#034;\/usr\/local\/nginx\/logs\/access.log&#034; \u00a0 nginx http client request body temporary files: &#034;client_body_temp&#034; \u00a0 nginx http proxy temporary files: &#034;proxy_temp&#034; \u00a0 nginx http fastcgi temporary files: &#034;fastcgi_temp&#034; \u00a0 nginx http uwsgi temporary files: &#034;uwsgi_temp&#034; \u00a0 nginx http scgi temporary files: &#034;scgi_temp&#034;<\/p>\n<p>5&#xff0c;Linking, undefined reference to &#096;ngx_rtmp_dash_module&#039; \u00a0 \u00a0 \u00a0 \u89e3\u51b3\u65b9\u6848&#xff1a; \u589e\u52a0nginx-http-flv-module\\\\dash\u7684\u7f16\u8bd1<\/p>\n<p>6&#xff0c;Linking, undefined reference to &#096;crypt_r&#039; [100%] Linking C executable nginx \/opt\/bstos\/linux-23\/sysroots\/x86_64-bstsdk-linux\/usr\/libexec\/aarch64-bst-linux\/gcc\/aarch64-bst-linux\/8.3.0\/real-ld: CMakeFiles\/nginx.dir\/nginx-1.18.0\/src\/os\/unix\/ngx_user.c.o: in function &#096;ngx_libc_crypt&#039;: \/home\/C882Dev_2351\/C882_AP\/app\/nginx\/nginx-1.18.0\/src\/os\/unix\/ngx_user.c:25: undefined reference to &#096;crypt_r&#039; collect2: error: ld returned 1 exit status CMakeFiles\/nginx.dir\/build.make:2866: recipe for target &#039;nginx&#039; failed make[2]: *** [nginx] Error 1 CMakeFiles\/Makefile2:94: recipe for target &#039;CMakeFiles\/nginx.dir\/all&#039; failed make[1]: *** [CMakeFiles\/nginx.dir\/all] Error 2 Makefile:102: recipe for target &#039;all&#039; failed make: *** [all] Error 2<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a; \u589e\u52a0&#xff1a; -lcrypt set(CMAKE_CXX_FLAGS &#034;${CMAKE_CXX_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT} -O0 -std&#061;c&#043;&#043;17 -s -lcrypt&#034;) set(CMAKE_C_FLAGS &#034;${CMAKE_C_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT} -I${OPENSSL_INCLUDE_DIR} -O2 -Wall -Werror -g -lcrypt&#034;)<\/p>\n<p>7,link &amp; Built target nginx OK [ 93%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_netcall_module.c.o [ 94%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_notify_module.c.o [ 94%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_parse.c.o [ 95%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_play_module.c.o [ 95%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_proxy_protocol.c.o [ 96%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_receive.c.o [ 96%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_record_module.c.o [ 97%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_relay_module.c.o [ 97%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_send.c.o [ 98%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_shared.c.o [ 98%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_stat_module.c.o [ 99%] Building C object CMakeFiles\/nginx_http_flv.dir\/nginx-http-flv-module\/ngx_rtmp_variables.c.o [100%] Linking C executable nginx_http_flv [100%] Built target nginx_http_flv<\/p>\n<\/p>\n<p>nginx \u7f16\u8bd1\u53c2\u6570&#xff1a;<\/p>\n<p>.\/configure &#8211;prefix&#061;\/usr\/local\/nginx &#8211;with-threads &#8211;with-file-aio &#8211;add-module&#061;..\/nginx-http-flv-module &#8211;with-http_ssl_module &#8211;with-http_flv_module &#8211;with-pcre&#061;\/path\/to\/pcre &#8211;with-zlib&#061;\/path\/to\/zlib &#8211;with-openssl&#061;\/path\/to\/openssl &#8211;with-ld-opt&#061;&#034;-static&#034; &#8211;with-http_dav_module &#8211;with-http_degradation_module \u00a0&#8211;with-http_realip_module &#8211;with-http_stub_status_module<\/p>\n<p> &#8211;prefix&#061;PATH\u00a0\u00a0 \u00a0\u6307\u5411\u5b89\u88c5\u76ee\u5f55 &#8211;sbin-path&#061;PATH\u00a0\u00a0 \u00a0\u6307\u5411&#xff08;\u6267\u884c&#xff09;\u7a0b\u5e8f\u6587\u4ef6 &#8211;conf-path&#061;PATH\u00a0\u00a0 \u00a0\u6307\u5411\u914d\u7f6e\u6587\u4ef6&#xff08;nginx.conf&#xff09; &#8211;error-log-path&#061;PATH\u00a0\u00a0 \u00a0\u6307\u5411\u9519\u8bef\u65e5\u5fd7\u76ee\u5f55 &#8211;pid-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411pid\u6587\u4ef6&#xff08;nginx.pid&#xff09; &#8211;lock-path&#061;PATH\u00a0\u00a0 \u00a0\u6307\u5411lock\u6587\u4ef6&#xff08;nginx.lock&#xff09;&#xff08;\u5b89\u88c5\u6587\u4ef6\u9501\u5b9a&#xff0c;\u9632\u6b62\u5b89\u88c5\u6587\u4ef6\u88ab\u522b\u4eba\u5229\u7528&#xff0c;\u6216\u81ea\u5df1\u8bef\u64cd\u4f5c\u3002&#xff09;\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0  &#8211;user&#061;USER \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u975e\u7279\u6743\u7528\u6237 &#8211;group&#061;GROUP\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5b9a\u7a0b\u5e8f\u8fd0\u884c\u65f6\u7684\u975e\u7279\u6743\u7528\u6237\u7ec4 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;builddir&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411\u7f16\u8bd1\u76ee\u5f55  &#8211;with-select_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528select\u6a21\u5757\u652f\u6301&#xff08;\u4e00\u79cd\u8f6e\u8be2\u6a21\u5f0f,\u4e0d\u63a8\u8350\u5728\u9ad8\u8f7d\u73af\u5883\u4e0b\u4f7f\u7528&#xff09;\u7981\u7528&#xff1a;&#8211;without-select_module &#8211;without-select_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528&#xff1a;&#8211;without-select_module &#8211;with-poll_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528poll\u6a21\u5757\u652f\u6301&#xff08;\u529f\u80fd\u4e0eselect\u76f8\u540c&#xff0c;\u4e0eselect\u7279\u6027\u76f8\u540c&#xff0c;\u4e3a\u4e00\u79cd\u8f6e\u8be2\u6a21\u5f0f,\u4e0d\u63a8\u8350\u5728\u9ad8\u8f7d\u73af\u5883\u4e0b\u4f7f\u7528&#xff09; &#8211;without-poll_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528&#xff1a;&#8211;without-select_module \u00a0\u00a0 \u00a0 &#8211;with-threads\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528\u7ebf\u7a0b\u6c60\u652f\u6301  &#8211;with-file-aio\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528file aio\u652f\u6301&#xff08;\u4e00\u79cdAPL\u6587\u4ef6\u4f20\u8f93\u683c\u5f0f&#xff09; &#8211;with-ipv6\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ipv6\u652f\u6301  &#8211;with-http_ssl_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_ssl_module\u652f\u6301&#xff08;\u4f7f\u652f\u6301https\u8bf7\u6c42&#xff0c;\u9700\u5df2\u5b89\u88c5openssl&#xff09; &#8211;with-http_v2_module \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-http_realip_module\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_realip_module\u652f\u6301&#xff08;\u8fd9\u4e2a\u6a21\u5757\u5141\u8bb8\u4ece\u8bf7\u6c42\u6807\u5934\u66f4\u6539\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u503c&#xff0c;\u9ed8\u8ba4\u4e3a\u5173&#xff09; &#8211;with-http_addition_module\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_addition_module\u652f\u6301&#xff08;\u4f5c\u4e3a\u4e00\u4e2a\u8f93\u51fa\u8fc7\u6ee4\u5668&#xff0c;\u652f\u6301\u4e0d\u5b8c\u5168\u7f13\u51b2&#xff0c;\u5206\u90e8\u5206\u54cd\u5e94\u8bf7\u6c42&#xff09; &#8211;with-http_xslt_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_xslt_module\u652f\u6301&#xff08;\u8fc7\u6ee4\u8f6c\u6362XML\u8bf7\u6c42&#xff09; &#8211;with-http_image_filter_module\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_image_filter_module\u652f\u6301&#xff08;\u4f20\u8f93JPEG\/GIF\/PNG \u56fe\u7247\u7684\u4e00\u4e2a\u8fc7\u6ee4\u5668&#xff09;&#xff08;\u9ed8\u8ba4\u4e3a\u4e0d\u542f\u7528\u3002gd\u5e93\u8981\u7528\u5230&#xff09; &#8211;with-http_geoip_module\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_geoip_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u521b\u5efa\u57fa\u4e8e\u4e0eMaxMind GeoIP\u4e8c\u8fdb\u5236\u6587\u4ef6\u76f8\u914d\u7684\u5ba2\u6237\u7aefIP\u5730\u5740\u7684ngx_http_geoip_module\u53d8\u91cf&#xff09; &#8211;with-http_sub_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_sub_module\u652f\u6301&#xff08;\u5141\u8bb8\u7528\u4e00\u4e9b\u5176\u4ed6\u6587\u672c\u66ff\u6362nginx\u54cd\u5e94\u4e2d\u7684\u4e00\u4e9b\u6587\u672c&#xff09; &#8211;with-http_dav_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_dav_module\u652f\u6301&#xff08;\u589e\u52a0PUT,DELETE,MKCOL&#xff1a;\u521b\u5efa\u96c6\u5408,COPY\u548cMOVE\u65b9\u6cd5&#xff09;\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e3a\u5173\u95ed&#xff0c;\u9700\u7f16\u8bd1\u5f00\u542f &#8211;with-http_flv_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_flv_module\u652f\u6301&#xff08;\u63d0\u4f9b\u5bfb\u6c42\u5185\u5b58\u4f7f\u7528\u57fa\u4e8e\u65f6\u95f4\u7684\u504f\u79fb\u91cf\u6587\u4ef6&#xff09; &#8211;with-http_mp4_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-http_gunzip_module\u00a0\u00a0 \u00a0 &#8211;with-http_gzip_static_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_gzip_static_module\u652f\u6301&#xff08;\u5728\u7ebf\u5b9e\u65f6\u538b\u7f29\u8f93\u51fa\u6570\u636e\u6d41&#xff09; &#8211;with-http_auth_request_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-http_random_index_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_random_index_module\u652f\u6301&#xff08;\u4ece\u76ee\u5f55\u4e2d\u968f\u673a\u6311\u9009\u4e00\u4e2a\u76ee\u5f55\u7d22\u5f15&#xff09; &#8211;with-http_secure_link_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_secure_link_module\u652f\u6301&#xff08;\u8ba1\u7b97\u548c\u68c0\u67e5\u8981\u6c42\u6240\u9700\u7684\u5b89\u5168\u94fe\u63a5\u7f51\u5740&#xff09; &#8211;with-http_degradation_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_degradation_module\u652f\u6301&#xff08;\u5141\u8bb8\u5728\u5185\u5b58\u4e0d\u8db3\u7684\u60c5\u51b5\u4e0b\u8fd4\u56de204\u6216444\u7801&#xff09; &#8211;with-http_slice_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-http_stub_status_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_stub_status_module\u652f\u6301&#xff08;\u83b7\u53d6nginx\u81ea\u4e0a\u6b21\u542f\u52a8\u4ee5\u6765\u7684\u5de5\u4f5c\u72b6\u6001&#xff09;  &#8211;without-http_charset_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_charset_module\u652f\u6301&#xff08;\u91cd\u65b0\u7f16\u7801web\u9875\u9762&#xff0c;\u4f46\u53ea\u80fd\u662f\u4e00\u4e2a\u65b9\u5411&#8211;\u670d\u52a1\u5668\u7aef\u5230\u5ba2\u6237\u7aef&#xff0c;\u5e76\u4e14\u53ea\u6709\u4e00\u4e2a\u5b57\u8282\u7684\u7f16\u7801\u53ef\u4ee5\u88ab\u91cd\u65b0\u7f16\u7801&#xff09; &#8211;without-http_gzip_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_gzip_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u540c-with-http_gzip_static_module\u529f\u80fd\u4e00\u6837&#xff09; &#8211;without-http_ssi_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_ssi_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5728\u8f93\u5165\u7aef\u5904\u7406\u5904\u7406\u670d\u52a1\u5668\u5305\u542b\u6587\u4ef6&#xff08;SSI&#xff09;\u7684\u8fc7\u6ee4\u5668&#xff0c;\u76ee\u524d\u652f\u6301SSI\u547d\u4ee4\u7684\u5217\u8868\u662f\u4e0d\u5b8c\u6574\u7684&#xff09; &#8211;without-http_userid_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_userid_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u5904\u7406\u7528\u6765\u786e\u5b9a\u5ba2\u6237\u7aef\u540e\u7eed\u8bf7\u6c42\u7684cookies&#xff09; &#8211;without-http_access_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_access_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u57fa\u4e8e\u4e3b\u673a\u7684\u8bbf\u95ee\u63a7\u5236\u3002\u5141\u8bb8\/\u62d2\u7edd\u57fa\u4e8eip\u5730\u5740&#xff09; &#8211;without-http_auth_basic_module\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_auth_basic_module&#xff08;\u8be5\u6a21\u5757\u662f\u53ef\u4ee5\u4f7f\u7528\u7528\u6237\u540d\u548c\u5bc6\u7801\u57fa\u4e8ehttp\u57fa\u672c\u8ba4\u8bc1\u65b9\u6cd5\u6765\u4fdd\u62a4\u4f60\u7684\u7ad9\u70b9\u6216\u5176\u90e8\u5206\u5185\u5bb9&#xff09; &#8211;without-http_autoindex_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528disable ngx_http_autoindex_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u4e8e\u81ea\u52a8\u751f\u6210\u76ee\u5f55\u5217\u8868&#xff0c;\u53ea\u5728ngx_http_index_module\u6a21\u5757\u672a\u627e\u5230\u7d22\u5f15\u6587\u4ef6\u65f6\u53d1\u51fa\u8bf7\u6c42\u3002&#xff09; &#8211;without-http_geo_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_geo_module\u652f\u6301&#xff08;\u521b\u5efa\u4e00\u4e9b\u53d8\u91cf&#xff0c;\u5176\u503c\u4f9d\u8d56\u4e8e\u5ba2\u6237\u7aef\u7684IP\u5730\u5740&#xff09; &#8211;without-http_map_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_map_module\u652f\u6301&#xff08;\u4f7f\u7528\u4efb\u610f\u7684\u952e\/\u503c\u5bf9\u8bbe\u7f6e\u914d\u7f6e\u53d8\u91cf&#xff09; &#8211;without-http_split_clients_module\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_split_clients_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u57fa\u4e8e\u67d0\u4e9b\u6761\u4ef6\u5212\u5206\u7528\u6237\u3002\u6761\u4ef6\u5982&#xff1a;ip\u5730\u5740\u3001\u62a5\u5934\u3001cookies\u7b49\u7b49&#xff09; &#8211;without-http_referer_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528disable ngx_http_referer_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u8fc7\u6ee4\u8bf7\u6c42&#xff0c;\u62d2\u7edd\u62a5\u5934\u4e2dReferer\u503c\u4e0d\u6b63\u786e\u7684\u8bf7\u6c42&#xff09; &#8211;without-http_rewrite_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_rewrite_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u5141\u8bb8\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6539\u53d8URI&#xff0c;\u5e76\u4e14\u6839\u636e\u53d8\u91cf\u6765\u8f6c\u5411\u4ee5\u53ca\u9009\u62e9\u914d\u7f6e\u3002 \u5982\u679c\u5728server\u7ea7\u522b\u8bbe\u7f6e\u8be5\u9009\u9879&#xff0c;\u90a3\u4e48\u4ed6\u4eec\u5c06\u5728 location\u4e4b\u524d\u751f\u6548\u3002\u5982\u679c\u5728location\u8fd8\u6709\u66f4\u8fdb\u4e00\u6b65\u7684\u91cd\u5199\u89c4\u5219&#xff0c;location\u90e8\u5206\u7684\u89c4\u5219\u4f9d\u7136\u4f1a\u88ab\u6267\u884c\u3002 \u5982\u679c\u8fd9\u4e2aURI\u91cd\u5199\u662f\u56e0\u4e3alocation\u90e8\u5206\u7684\u89c4\u5219\u9020\u6210\u7684&#xff0c;\u90a3\u4e48 location\u90e8\u5206\u4f1a\u518d\u6b21\u88ab\u6267\u884c\u4f5c\u4e3a\u65b0\u7684URI\u3002 \u8fd9\u4e2a\u5faa\u73af\u4f1a\u6267\u884c10\u6b21&#xff0c;\u7136\u540eNginx\u4f1a\u8fd4\u56de\u4e00\u4e2a500\u9519\u8bef\u3002&#xff09; &#8211;without-http_proxy_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_proxy_module\u652f\u6301&#xff08;\u6709\u5173\u4ee3\u7406\u670d\u52a1\u5668&#xff09; &#8211;without-http_fastcgi_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_fastcgi_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u5141\u8bb8Nginx \u4e0eFastCGI \u8fdb\u7a0b\u4ea4\u4e92&#xff0c;\u5e76\u901a\u8fc7\u4f20\u9012\u53c2\u6570\u6765\u63a7\u5236FastCGI \u8fdb\u7a0b\u5de5\u4f5c\u3002 &#xff09;FastCGI\u4e00\u4e2a\u5e38\u9a7b\u578b\u7684\u516c\u5171\u7f51\u5173\u63a5\u53e3\u3002 &#8211;without-http_uwsgi_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_uwsgi_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u533b\u7528uwsgi\u534f\u8bae&#xff0c;uWSGI\u670d\u52a1\u5668\u76f8\u5173&#xff09; &#8211;without-http_scgi_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_scgi_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u542f\u7528SCGI\u534f\u8bae\u652f\u6301&#xff0c;SCGI\u534f\u8bae\u662fCGI\u534f\u8bae\u7684\u66ff\u4ee3\u3002\u5b83\u662f\u4e00\u79cd\u5e94\u7528\u7a0b\u5e8f\u4e0eHTTP\u670d\u52a1\u63a5\u53e3\u6807\u51c6\u3002\u5b83\u6709\u4e9b\u50cfFastCGI\u4f46\u4ed6\u7684\u8bbe\u8ba1 \u66f4\u5bb9\u6613\u5b9e\u73b0\u3002&#xff09; &#8211;without-http_memcached_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_memcached_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u63d0\u4f9b\u7b80\u5355\u7684\u7f13\u5b58&#xff0c;\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u6548\u7387&#xff09; &#8211;without-http_limit_conn_module\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_limit_zone_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u53ef\u4ee5\u9488\u5bf9\u6761\u4ef6&#xff0c;\u8fdb\u884c\u4f1a\u8bdd\u7684\u5e76\u53d1\u8fde\u63a5\u6570\u63a7\u5236&#xff09; &#8211;without-http_limit_req_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_limit_req_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u5141\u8bb8\u4f60\u5bf9\u4e8e\u4e00\u4e2a\u5730\u5740\u8fdb\u884c\u8bf7\u6c42\u6570\u91cf\u7684\u9650\u5236\u7528\u4e00\u4e2a\u7ed9\u5b9a\u7684session\u6216\u4e00\u4e2a\u7279\u5b9a\u7684\u4e8b\u4ef6&#xff09; &#8211;without-http_empty_gif_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_empty_gif_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u5728\u5185\u5b58\u4e2d\u5e38\u9a7b\u4e86\u4e00\u4e2a1*1\u7684\u900f\u660eGIF\u56fe\u50cf&#xff0c;\u53ef\u4ee5\u88ab\u975e\u5e38\u5feb\u901f\u7684\u8c03\u7528&#xff09; &#8211;without-http_browser_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_browser_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u6765\u521b\u5efa\u4f9d\u8d56\u4e8e\u8bf7\u6c42\u62a5\u5934\u7684\u503c\u3002\u5982\u679c\u6d4f\u89c8\u5668\u4e3amodern &#xff0c;\u5219$modern_browser\u7b49\u4e8emodern_browser_value\u6307\u4ee4\u5206\u914d\u7684\u503c&#xff1b; \u5982 \u679c\u6d4f\u89c8\u5668\u4e3aold&#xff0c;\u5219$ancient_browser\u7b49\u4e8e ancient_browser_value\u6307\u4ee4\u5206\u914d\u7684\u503c&#xff1b;\u5982\u679c\u6d4f\u89c8\u5668\u4e3a MSIE\u4e2d\u7684\u4efb\u610f\u7248\u672c&#xff0c;\u5219 $msie\u7b49\u4e8e1&#xff09; &#8211;without-http_upstream_hash_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;without-http_upstream_ip_hash_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528ngx_http_upstream_ip_hash_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u7528\u4e8e\u7b80\u5355\u7684\u8d1f\u8f7d\u5747\u8861&#xff09; &#8211;without-http_upstream_least_conn_module\u00a0\u00a0 \u00a0 &#8211;without-http_upstream_keepalive_module\u00a0\u00a0 \u00a0 &#8211;without-http_upstream_zone_module  &#8211;with-http_perl_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_http_perl_module\u652f\u6301&#xff08;\u8be5\u6a21\u5757\u4f7fnginx\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528perl\u6216\u901a\u8fc7ssi\u8c03\u7528perl&#xff09; &#8211;with-perl_modules_path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9aperl\u6a21\u5757\u8def\u5f84 &#8211;with-perl&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9aperl\u5e93\u6587\u4ef6\u8def\u5f84 &#8211;http-log-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9aaccess log\u8def\u5f84 &#8211;http-client-body-temp-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9ahttp\u5ba2\u6237\u7aef\u8bf7\u6c42\u4e34\u65f6\u6587\u4ef6\u8def\u5f84 &#8211;http-proxy-temp-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9ahttp\u4ee3\u7406\u4e34\u65f6\u6587\u4ef6\u8def\u5f84 &#8211;http-fastcgi-temp-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9ahttp fastcgi\u4e34\u65f6\u6587\u4ef6\u8def\u5f84 &#8211;http-uwsgi-temp-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9ahttp uwsgi\u4e34\u65f6\u6587\u4ef6\u8def\u5f84 &#8211;http-scgi-temp-path&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u5b9ahttp scgi\u4e34\u65f6\u6587\u4ef6\u8def\u5f84  &#8211;without-http\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528http server\u529f\u80fd &#8211;without-http-cache\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528http cache\u529f\u80fd \u00a0\u00a0 \u00a0 &#8211;with-mail\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528POP3\/IMAP4\/SMTP\u4ee3\u7406\u6a21\u5757\u652f\u6301 &#8211;with-mail_ssl_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_mail_ssl_module\u652f\u6301 &#8211;without-mail_pop3_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528pop3\u534f\u8bae &#8211;without-mail_imap_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528imap\u534f\u8bae &#8211;without-mail_smtp_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528smtp\u534f\u8bae  &#8211;with-stream\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-stream_ssl_module &#8211;without-stream_limit_conn_module &#8211;without-stream_access_module &#8211;without-stream_upstream_hash_module &#8211;without-stream_upstream_least_conn_module &#8211;without-stream_upstream_zone_module &#8211;with-google_perftools_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_google_perftools_module\u652f\u6301&#xff08;\u8c03\u8bd5\u7528&#xff0c;\u5256\u6790\u7a0b\u5e8f\u6027\u80fd\u74f6\u9888&#xff09; &#8211;with-cpp_test_module\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528ngx_cpp_test_module\u652f\u6301  &#8211;add-module&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528\u5916\u90e8\u6a21\u5757\u652f\u6301  &#8211;with-cc&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411C\u7f16\u8bd1\u5668\u8def\u5f84 &#8211;with-cpp&#061;PATH\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411C\u9884\u5904\u7406\u8def\u5f84 &#8211;with-cc-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u7f6eC\u7f16\u8bd1\u5668\u53c2\u6570 &#8211;with-ld-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u8bbe\u7f6e\u8fde\u63a5\u6587\u4ef6\u53c2\u6570 &#8211;with-cpu-opt&#061;CPU\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5b9a\u7f16\u8bd1\u7684CPU&#xff0c;\u53ef\u7528\u7684\u503c\u4e3a: pentium, pentiumpro, pentium3, pentium4, athlon, opteron, amd64, sparc32, sparc64, ppc64 &#8211;without-pcre\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u7981\u7528pcre\u5e93 &#8211;with-pcre\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528pcre\u5e93 &#8211;with-pcre&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411pcre\u5e93\u6587\u4ef6\u76ee\u5f55 &#8211;with-pcre-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u5728\u7f16\u8bd1\u65f6\u4e3apcre\u5e93\u8bbe\u7f6e\u9644\u52a0\u53c2\u6570 &#8211;with-pcre-jit\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 &#8211;with-md5&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411md5\u5e93\u6587\u4ef6\u76ee\u5f55 &#8211;with-md5-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u5728\u7f16\u8bd1\u65f6\u4e3amd5\u5e93\u8bbe\u7f6e\u9644\u52a0\u53c2\u6570 &#8211;with-md5-asm\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u4f7f\u7528md5\u6c47\u7f16\u6e90 &#8211;with-sha1&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411sha1\u5e93\u76ee\u5f55&#xff08;\u6570\u5b57\u7b7e\u540d\u7b97\u6cd5&#xff0c;\u4e3b\u8981\u7528\u4e8e\u6570\u5b57\u7b7e\u540d&#xff09; &#8211;with-sha1-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u5728\u7f16\u8bd1\u65f6\u4e3asha1\u5e93\u8bbe\u7f6e\u9644\u52a0\u53c2\u6570 &#8211;with-sha1-asm\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u4f7f\u7528sha1\u6c47\u7f16\u6e90 &#8211;with-zlib&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411zlib\u5e93\u76ee\u5f55 &#8211;with-zlib-opt&#061;OPTIONS \u00a0\u00a0 \u00a0\u5728\u7f16\u8bd1\u65f6\u4e3azlib\u8bbe\u7f6e\u9644\u52a0\u53c2\u6570 &#8211;with-zlib-asm&#061;CPU\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u4e3a\u6307\u5b9a\u7684CPU\u4f7f\u7528zlib\u6c47\u7f16\u6e90\u8fdb\u884c\u4f18\u5316&#xff0c;CPU\u7c7b\u578b\u4e3apentium, pentiumpro  &#8211;with-libatomic\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u4e3a\u539f\u5b50\u5185\u5b58\u7684\u66f4\u65b0\u64cd\u4f5c\u7684\u5b9e\u73b0\u63d0\u4f9b\u4e00\u4e2a\u67b6\u6784 &#8211;with-libatomic&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411libatomic_ops\u5b89\u88c5\u76ee\u5f55  &#8211;with-openssl&#061;DIR\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u6307\u5411openssl\u5b89\u88c5\u76ee\u5f55 &#8211;with-openssl-opt&#061;OPTIONS\u00a0\u00a0 \u00a0\u5728\u7f16\u8bd1\u65f6\u4e3aopenssl\u8bbe\u7f6e\u9644\u52a0\u53c2\u6570  &#8211;with-debug\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u542f\u7528debug\u65e5\u5fd7<\/p>\n<\/p>\n<p>CMakelist.txt:<\/p>\n<p>cmake_minimum_required(VERSION 3.10.2) project(nginx)<\/p>\n<p> # &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-version&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- # set(main_version 1) set(mdl_version 1) set(sub_version 6) set(version ${main_version}.${mdl_version}.${sub_version})<\/p>\n<p>MESSAGE(&#034;CT: ${CT}&#034;) if(NOT CT) \u00a0 \u00a0 set(CT &#034;lp&#034;) \u00a0 \u00a0 MESSAGE(&#034;CT: ${CT}&#034;) endif()<\/p>\n<p>MESSAGE(&#034;ODIR: ${ODIR}&#034;) if(NOT ODIR) \u00a0 \u00a0 set(ODIR ${CMAKE_CURRENT_BINARY_DIR}\/${PROJECT_NAME}_${version}\/) \u00a0 \u00a0 MESSAGE(&#034;ODIR: ${ODIR}&#034;) else() \u00a0 \u00a0 set(ODIR ${ODIR}\/${PROJECT_NAME}) \u00a0 \u00a0 MESSAGE(&#034;ODIR: ${ODIR}&#034;) endif()<\/p>\n<p> # \u8bbe\u7f6e\u6e90\u7801\u8def\u5f84 CMakeFiles\/nginx.dir\/nginx-1.18.0 set(NGINX_SRC_DIR &#034;${CMAKE_CURRENT_SOURCE_DIR}\/nginx-1.18.0&#034;) set(FLV_MODULE_DIR &#034;${CMAKE_CURRENT_SOURCE_DIR}\/nginx-http-flv-module&#034;)<\/p>\n<p> set(CMAKE_SYSROOT \/opt\/bstos\/linux-23\/sysroots\/aarch64-bst-linux) # &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-compile flag&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- # set(CMAKE_CXX_FLAGS &#034;${CMAKE_CXX_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT} -O0 -std&#061;c&#043;&#043;17 -s -lcrypt&#034;) set(CMAKE_C_FLAGS &#034;${CMAKE_C_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT} -I${OPENSSL_INCLUDE_DIR} -O2 -Wall -Werror -g -lcrypt&#034;)<\/p>\n<p>#set(CMAKE_EXE_LINKER_FLAGS &#034;${CMAKE_EXE_LINKER_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT} -static&#034;) # Specify the cross compiler #set(CMAKE_C_COMPILER \/opt\/bstos\/linux-23\/sysroots\/x86_64-bstsdk-linux\/usr\/bin\/aarch64-bst-linux\/aarch64-bst-linux-gcc) #set(CMAKE_C_COMPILER \/usr\/local\/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu\/bin\/aarch64-linux-gnu-gcc) #set(CMAKE_CXX_COMPILER \/opt\/bstos\/linux-23\/sysroots\/x86_64-bstsdk-linux\/usr\/bin\/aarch64-bst-linux\/aarch64-bst-linux-g&#043;&#043;)<\/p>\n<p># Add extra compiler flags #set(CMAKE_C_FLAGS &#034;${CMAKE_C_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT}&#034;) #set(CMAKE_CXX_FLAGS &#034;${CMAKE_CXX_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT}&#034;) #set(CMAKE_EXE_LINKER_FLAGS &#034;${CMAKE_EXE_LINKER_FLAGS} &#8211;sysroot&#061;${CMAKE_SYSROOT}&#034;) #set(CMAKE_C_FLAGS &#034;${CMAKE_C_FLAGS} -I${OPENSSL_INCLUDE_DIR}&#034;)<\/p>\n<\/p>\n<p>find_program(CONFIGURE_EXECUTABLE configure PATHS &#034;${NGINX_SRC_DIR}&#034;) execute_process( \u00a0 \u00a0 COMMAND ${CONFIGURE_EXECUTABLE} &#8211;prefix&#061;\/usr\/local\/nginx &#8211;with-threads &#8211;with-file-aio &#8211;with-ld-opt&#061;-static &#8211;add-module&#061;..\/nginx-http-flv-module &#8211;with-http_ssl_module &#8211;with-http_flv_module &#8211;with-pcre&#061;\/path\/to\/pcre &#8211;with-zlib&#061;\/path\/to\/zlib &#8211;with-openssl&#061;\/path\/to\/openssl &#8211;with-http_dav_module &#8211;with-http_degradation_module \u00a0&#8211;with-http_realip_module &#8211;with-http_stub_status_module \u00a0 \u00a0 WORKING_DIRECTORY ${NGINX_SRC_DIR} )<\/p>\n<p> # &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-opencv&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- # find_package(OpenCV REQUIRED) IF(OpenCV_FOUND) \u00a0 \u00a0 MESSAGE(&#034;OpenCV_VERSION:${OpenCV_VERSION}&#034;) \u00a0 \u00a0 MESSAGE(&#034;OpenCV_LIBS:${OpenCV_LIBS}&#034;) \u00a0 \u00a0 MESSAGE(&#034;OpenCV_INCLUDE_DIRS:${OpenCV_INCLUDE_DIRS}&#034;) ENDIF()<\/p>\n<p> # &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-include heard files&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- # # \u5305\u542b\u5934\u6587\u4ef6\u8def\u5f84 include_directories( \u00a0 \u00a0 ${CMAKE_CURRENT_SOURCE_DIR} \u00a0 \u00a0 ${CMAKE_CURRENT_SOURCE_DIR}\/nginx-http-flv-module \u00a0 \u00a0 ${CMAKE_CURRENT_SOURCE_DIR}\/nginx-http-flv-module\/hls \u00a0 \u00a0 ${NGINX_SRC_DIR}\/src\/core \u00a0 \u00a0 ${NGINX_SRC_DIR}\/src\/event \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/event\/modules \u00a0 \u00a0 ${NGINX_SRC_DIR}\/src\/http \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/http\/v2 \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/http\/modules \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/http\/modules\/perl \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/mail \u00a0 \u00a0 ${NGINX_SRC_DIR}\/src\/os\/unix \u00a0\u00a0 \u00a0${NGINX_SRC_DIR}\/src\/stream \u00a0 \u00a0 ${NGINX_SRC_DIR}\/objs \u00a0 \u00a0 \u00a0 ${FLV_MODULE_DIR} \u00a0\u00a0 \u00a0${FLV_MODULE_DIR}\/dash \u00a0\u00a0 \u00a0${FLV_MODULE_DIR}\/hls \u00a0\u00a0 \u00a0${OPENSSL_INCLUDE_DIR}\/opt\/bstos\/linux-23\/sysroots\/aarch64-bst-linux\/usr\/include )<\/p>\n<p> # Nginx core source files file(GLOB_RECURSE NGINX_SOURCES\u00a0 \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/core\/*.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/*.c&#034; \u00a0 \u00a0 # \u53ea\u4f7f\u7528 epoll \u6a21\u5757&#xff0c;\u4e0d\u4f7f\u7528\u5176\u4ed6\u4e8b\u4ef6\u6a21\u5757 \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_epoll_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/os\/unix\/*.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/http\/*.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/http\/modules\/*.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/objs\/src\/http\/modules\/ngx_http_config_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/objs\/ngx_modules.c&#034; )<\/p>\n<p># \u663e\u5f0f\u6392\u9664\u4e0d\u9700\u8981\u7684\u7279\u5b9a\u5e73\u53f0\u6a21\u5757 list(REMOVE_ITEM NGINX_SOURCES\u00a0 \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_eventport_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_kqueue_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_devpoll_module.c&#034; #Solaris \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_poll_module.c&#034; #\u542f\u7528poll\u6a21\u5757\u652f\u6301&#xff08;\u529f\u80fd\u4e0eselect\u76f8\u540c&#xff0c;\u4e0eselect\u7279\u6027\u76f8\u540c&#xff0c;\u4e3a\u4e00\u79cd\u8f6e\u8be2\u6a21\u5f0f,\u4e0d\u63a8\u8350\u5728\u9ad8\u8f7d\u73af\u5883\u4e0b\u4f7f\u7528&#xff09; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_select_module.c&#034; #\u542f\u7528select\u6a21\u5757\u652f\u6301&#xff08;\u4e00\u79cd\u8f6e\u8be2\u6a21\u5f0f,\u4e0d\u63a8\u8350\u5728\u9ad8\u8f7d\u73af\u5883\u4e0b\u4f7f\u7528&#xff09; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_win32_select_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_win32_iocp_module.c&#034; \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/event\/modules\/ngx_win32_poll_module.c&#034;\u00a0\u00a0 \u00a0 \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/http\/modules\/ngx_http_geoip_module.c&#034;\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/http\/modules\/ngx_http_image_filter_module.c&#034;\u00a0\u00a0 \u00a0 \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/http\/modules\/ngx_http_xslt_filter_module.c&#034; \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/http\/modules\/perl\/ngx_http_perl_module.c&#034;\u00a0\u00a0 \u00a0 \u00a0 \u00a0 &#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_darwin_init.c&#034;\u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0 \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_darwin_sendfile_chain.c&#034; \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_file_aio_read.c&#034; #FreeBSD file AIO features and quirks \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_freebsd_init.c&#034; \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_freebsd_sendfile_chain.c&#034; \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_solaris_init.c&#034; \u00a0\u00a0 \u00a0&#034;${NGINX_SRC_DIR}\/src\/os\/unix\/ngx_solaris_sendfilev_chain.c&#034; ) \u00a0<\/p>\n<p># \u4f7f\u7528\u751f\u6210\u7684ngx_modules.c\u800c\u4e0d\u662fNginx\u6e90\u7801\u4e2d\u7684 #list(REMOVE_ITEM NGINX_SOURCES &#034;${NGINX_SRC_DIR}\/objs\/ngx_modules.c&#034;) #list(APPEND NGINX_SOURCES &#034;${CMAKE_BINARY_DIR}\/ngx_modules.c&#034;)<\/p>\n<p># \u5b9a\u4e49\u5fc5\u8981\u7684\u5b8f&#xff08;\u6839\u636eNginx\u914d\u7f6e\u751f\u6210&#xff09; # Add necessary compile definitions add_definitions( \u00a0 \u00a0 -DNGX_PREFIX&#061;&#034;${CMAKE_INSTALL_PREFIX}&#034; \u00a0 \u00a0 -DNGX_CONF_PREFIX&#061;&#034;${CMAKE_INSTALL_PREFIX}\/conf&#034; \u00a0 \u00a0 -DNGX_SBIN_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/sbin\/nginx&#034; \u00a0 \u00a0 -DNGX_CONF_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/conf\/nginx.conf&#034; \u00a0 \u00a0 -DNGX_PID_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/logs\/nginx.pid&#034; \u00a0 \u00a0 -DNGX_LOCK_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/logs\/nginx.lock&#034; \u00a0 \u00a0 -DNGX_ERROR_LOG_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/logs\/error.log&#034; \u00a0 \u00a0 -DNGX_HTTP_LOG_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/logs\/access.log&#034; \u00a0 \u00a0 -DNGX_HTTP_CLIENT_TEMP_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/client_body_temp&#034; \u00a0 \u00a0 -DNGX_HTTP_PROXY_TEMP_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/proxy_temp&#034; \u00a0 \u00a0 -DNGX_HTTP_FASTCGI_TEMP_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/fastcgi_temp&#034; \u00a0 \u00a0 -DNGX_HTTP_UWSGI_TEMP_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/uwsgi_temp&#034; \u00a0 \u00a0 -DNGX_HTTP_SCGI_TEMP_PATH&#061;&#034;${CMAKE_INSTALL_PREFIX}\/scgi_temp&#034; \u00a0 \u00a0 -D_GNU_SOURCE \u00a0 \u00a0 -D_FILE_OFFSET_BITS&#061;64 \u00a0 \u00a0 -DNGX_HAVE_UNISTD_H \u00a0 \u00a0 -DNGX_OFF_T_LEN&#061;20 \u00a0 \u00a0 # \u6dfb\u52a0\u7f3a\u5931\u7684\u5b9a\u4e49 \u00a0 \u00a0 -DNGX_USER&#061;&#034;nobody&#034; \u00a0 \u00a0 -DNGX_GROUP&#061;&#034;nogroup&#034; \u00a0 \u00a0 -DNGX_HAVE_INET6&#061;1 \u00a0 \u00a0 -DNGX_HAVE_PREAD&#061;1 \u00a0 \u00a0 -DNGX_HAVE_PWRITE&#061;1 \u00a0 \u00a0 -DNGX_HAVE_SENDFILE&#061;1 \u00a0 \u00a0 -DNGX_HAVE_SENDFILE64&#061;1 \u00a0 \u00a0 -DNGX_HAVE_PR_SET_DUMPABLE&#061;1 \u00a0 \u00a0 -DNGX_HAVE_SCHED_SETAFFINITY&#061;1 \u00a0 \u00a0 -DNGX_HAVE_GNU_CRYPT_R&#061;1 \u00a0 \u00a0 -DNGX_HAVE_NONALIGNED&#061;1 \u00a0 \u00a0 -DNGX_CPU_CACHE_LINE&#061;64 \u00a0 \u00a0 -DNGX_HTTP_CACHE&#061;1 \u00a0 \u00a0 -DNGX_HTTP_GZIP&#061;1 \u00a0 \u00a0 -DNGX_HTTP_SSI&#061;1 \u00a0 \u00a0 -DNGX_HTTP_V2&#061;1 \u00a0 \u00a0 -DNGX_CRYPT&#061;1 \u00a0 \u00a0 -DNGX_COMPAT&#061;1 \u00a0 \u00a0 -DNGX_HTTP_HEADERS&#061;1 \u00a0 \u00a0 -DNGX_HAVE_TIMER_EVENT&#061;1 \u00a0 \u00a0 -DNGX_SIZE_T_LEN&#061;20 \u00a0# \u6dfb\u52a0\u7f3a\u5931\u7684 NGX_SIZE_T_LEN \u5b9a\u4e49 \u00a0 \u00a0 # \u6dfb\u52a0\u65b0\u7f3a\u5931\u7684\u5b8f\u5b9a\u4e49 \u00a0 \u00a0 -DNGX_MAX_SIZE_T_VALUE&#061;9223372036854775807UL \u00a0# 64\u4f4d\u7cfb\u7edf\u4e0bsize_t\u6700\u5927\u503c \u00a0 \u00a0 -DNGX_MAX_OFF_T_VALUE&#061;9223372036854775807LL \u00a0 # 64\u4f4d\u7cfb\u7edf\u4e0boff_t\u6700\u5927\u503c \u00a0 \u00a0 # \u6dfb\u52a0 epoll \u76f8\u5173\u7684\u7f16\u8bd1\u5b9a\u4e49 \u00a0 \u00a0 -DNGX_HAVE_EPOLL&#061;1 \u00a0 \u00a0 -DNGX_HAVE_EPOLL_EVENT&#061;1 \u00a0 \u00a0 -DNGX_HAVE_CLEAR_EVENT&#061;1 \u00a0 \u00a0 -DNGX_LINUX&#061;1 \u00a0\u00a0 \u00a0-DNGX_HTTP_FLV_MODULE )<\/p>\n<p># \u6dfb\u52a0FLV\u6a21\u5757\u6e90\u7801 file(GLOB FLV_MODULE_SOURCES\u00a0 \u00a0 \u00a0 ${FLV_MODULE_DIR}\/*.c \u00a0\u00a0 \u00a0${FLV_MODULE_DIR}\/hls\/*.c \u00a0\u00a0 \u00a0${FLV_MODULE_DIR}\/dash\/*.c) \u00a0\u00a0 \u00a0 list(APPEND NGINX_SOURCES ${FLV_MODULE_SOURCES})<\/p>\n<p># \u67e5\u627e\u4f9d\u8d56\u5e93&#xff08;configure\u65f6&#xff0c;\u9700\u63d0\u524d\u9759\u6001\u7f16\u8bd1&#xff09; find_library(PCRE_LIB pcre HINTS \/path\/to\/pcre-arm\/lib REQUIRED) find_library(SSL_LIB ssl HINTS \/path\/to\/openssl-arm\/lib REQUIRED) find_library(CRYPTO_LIB crypto HINTS \/path\/to\/openssl-arm\/lib REQUIRED) find_library(ZLIB_LIB z HINTS \/path\/to\/zlib-arm\/lib REQUIRED)<\/p>\n<p> ADD_EXECUTABLE(${PROJECT_NAME} \u00a0${NGINX_SOURCES})<\/p>\n<p># \u94fe\u63a5\u4f9d\u8d56\u5e93 target_link_libraries(${PROJECT_NAME} \u00a0 \u00a0 ${PCRE_LIB} \u00a0 \u00a0 ${SSL_LIB} \u00a0 \u00a0 ${CRYPTO_LIB} \u00a0 \u00a0 ${ZLIB_LIB} \u00a0 \u00a0 -ldl -lpthread )<\/p>\n<p> \u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb693\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u89e3\u51b3\u65b9\u6848\uff1a 1, \u589e\u52a0nginx-http-flv-module\\\\dash\u7684\u7f16\u8bd1\u30022\uff0c.configure failed\u95ee\u9898,\u5b89\u88c5 pcre\u30023,.configure failed\u95ee\u9898,\u5b89\u88c5zlib\u30024, \u589e\u52a0GCC\u7f16\u8bd1\u9009\u9879\uff1a -lcrypt\u3002_linux nginx configure\u6a21\u5757<\/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":[58,117],"topic":[],"class_list":["post-28986","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-nginx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \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\/28986.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb693\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u89e3\u51b3\u65b9\u6848\uff1a 1, \u589e\u52a0nginx-http-flv-module\\dash\u7684\u7f16\u8bd1\u30022\uff0c.configure failed\u95ee\u9898,\u5b89\u88c5 pcre\u30023,.configure failed\u95ee\u9898,\u5b89\u88c5zlib\u30024, \u589e\u52a0GCC\u7f16\u8bd1\u9009\u9879\uff1a -lcrypt\u3002_linux nginx configure\u6a21\u5757\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/28986.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T21:00:56+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=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28986.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/28986.html\",\"name\":\"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T21:00:56+00:00\",\"dateModified\":\"2025-04-19T21:00:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/28986.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/28986.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/28986.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72\"}]},{\"@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":"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \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\/28986.html","og_locale":"zh_CN","og_type":"article","og_title":"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb693\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u89e3\u51b3\u65b9\u6848\uff1a 1, \u589e\u52a0nginx-http-flv-module\\dash\u7684\u7f16\u8bd1\u30022\uff0c.configure failed\u95ee\u9898,\u5b89\u88c5 pcre\u30023,.configure failed\u95ee\u9898,\u5b89\u88c5zlib\u30024, \u589e\u52a0GCC\u7f16\u8bd1\u9009\u9879\uff1a -lcrypt\u3002_linux nginx configure\u6a21\u5757","og_url":"https:\/\/www.wsisp.com\/helps\/28986.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T21:00:56+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/28986.html","url":"https:\/\/www.wsisp.com\/helps\/28986.html","name":"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T21:00:56+00:00","dateModified":"2025-04-19T21:00:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/28986.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/28986.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/28986.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RTMP\u63a8\u6d41\u670d\u52a1\u5668nginx\u5728linux\u4e0a\u7684\u7f16\u8bd1\u90e8\u7f72"}]},{"@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\/28986","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=28986"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/28986\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=28986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=28986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=28986"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=28986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}