Skip to content

Compile the module as a dynamic module

winshining edited this page Aug 29, 2018 · 5 revisions

Prerequisites

Nginx version must be equal to or greater than 1.9.11.

Build

cd to NGINX source directory & run this:

./configure --add-dynamic-module=/path/to/nginx-http-flv-module
make
make install

The name of dynamic module

ngx_http_flv_live_module.so

Load the dynamic module

Nginx uses load_module command to load the dynamic modules and it must be located before some directives, in the default conf file that Nginx provides, it must be located before events directive.
Load command:

load_module modules/ngx_http_flv_live_module.so;

In the above command, both absolute and relative directory are OK, the modules directory is where the module located in, the default value is /usr/local/nginx/modules. However, if a customized directory is specified when configure is executed, the directory will be located in where the configure specified.

Clone this wiki locally