-
-
Notifications
You must be signed in to change notification settings - Fork 583
Compile the module as a dynamic module
winshining edited this page Dec 4, 2017
·
5 revisions
Nginx version must be 1.9.11 or later.
cd to NGINX source directory & run this:
./configure --add-dynamic-module=/path/to/nginx-http-flv-module
make
make install
ngx_rtmp_module.so
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_rtmp_module.so;
In the above command, both absolute and relative directory is 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.