Thursday, March 30, 2017

How to build NGINX RTMP module



This project was implemented in Ubuntu-14.04.5-server-amd64


Preparation in build utilities by typing command as below
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev


Create build folder. In my case, I created in /home/addies/build
sudo mkdir ~/build
cd ~/build


Download and Unpack nginx-rtmp-module
sudo git clone git://github.com/arut/nginx-rtmp-module.git


Download and Unpack nginx source
sudo wget http://nginx.org/download/nginx-1.10.2.tar.gz
sudo tar xzf  nginx-1.10.2.tar.gz
cd nginx-1.10.2


Build nginx and add rtmp module
sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module
sudo make
sudo make install




Pic 1. Result  configure nginx rtmp



Pic 2. Result make nginx rtmp



Pic 3. Result make install nginx rtmp



Start nginx server
sudo /usr/local/nginx/sbin/nginx


Reload nginx server
sudo /usr/local/nginx/sbin/nginx -s reload


Stop nginx server
sudo /usr/local/nginx/sbin/nginx -s stop

No comments:

Post a Comment