简体   繁体   中英

install rtmp module on nginx pre-built

Recently I installed stable version of nginx from nginx.org and configured rtmp module to work with it. After some time I realized that my PHP is not working normal and installed configured PHP with FPM but server was too messy after that. I got another test server from google engine and installed nginx pre-built package from package manager with apt-get install nginx-full command, but didn't find any way to use rtmp module with that. As nginx official blog claims that, "not all modules, but some of them, including rtmp module is configurable for pre-built version of nginx". I tried to follow guide below:

https://www.nginx.com/blog/creating-installable-packages-dynamic-modules

But at the end it created another nginx folder on some other location to be used with rtmp module. I tried to include conf file of 2nd nginx to use its rtmp but no luck, I messed everything as I'm net in this industry. Can someone please help me to understand using pre-built nginx with rtmp module? Thanks for your time

You have to compile the same version of nginx as the pre-built while adding the dynamic module, on the same machine or an equivalent one and then copy the resulting module .so to the modules directory of the pre-built.

You can then load the module by adding:

load_module modules/some_module.so;

to the configuration of the pre-built and restarting.

Or you can follow the guide and package it in order to avoid the potential pitfalls associated with a manual copy. You can do this later once it works after a simple copy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM