sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev mkdir /opt/nginx cd /opt/nginx wget http://nginx.org/download/nginx-1.7.7.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip tar -zxvf nginx-1.7.7.tar.gz unzip master.zip cd nginx-1.7.7 ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master make sudo make install vim /usr/local/nginx/conf/nginx.conf
Next we have to add this to the file:
rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; #push rtmp:/// } } }
And run nginx
sudo /usr/local/nginx/sbin/nginx