Skip to content

Installing via Build

ispyisail edited this page Apr 19, 2017 · 18 revisions

Download, Build and Install

Login as Root

 sudo su -

Create Director

 cd ~
 mkdir nginx
 cd nginx

Build Utilities

 # for the HTTP rewrite module which requires the PCRE library
 apt-get install libpcre3-dev
 
 # for SSL modules
 apt-get install libssl-dev

Make and CD to build directory (home)

 sudo mkdir ~/build && cd ~/build

Download & unpack latest nginx-rtmp (you can also use http)

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

Download & unpack nginx (you can also use svn)

    sudo wget http://nginx.org/download/nginx-1.12.0.tar.gz
    sudo tar xzf nginx-1.12.0.tar.gz
    cd nginx-1.12.0

Build nginx with nginx-rtmp

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

Start nginx Server

    sudo /usr/local/nginx/sbin/nginx
Clone this wiki locally