Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Setup Nginx-RTMP on Ubuntu 14.04
apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip software-properties-common
mkdir /usr/build
#Download the Nginx and Nginx-RTMP source.
#Extract the Nginx and Nginx-RTMP source.
tar -zxvf nginx-1.7.8.tar.gz
#Switch to the Nginx directory.
cd nginx-1.7.8
#Add modules that Nginx will be compiled with. Nginx-RTMP is included.
./configure --with-http_ssl_module --with-http_stub_status_module --with-http_secure_link_module --with-http_flv_module --with-http_mp4_module --add-module=../nginx-rtmp-module-master
#Compile and install Nginx with Nginx-RTMP
make install
#Install the Nginx init scripts.
wget -O /etc/init.d/nginx
chmod +x /etc/init.d/nginx
update-rc.d nginx defaults
#Start and stop Nginx to generate configuration files.
service nginx start
service nginx stop
#Installing FFmpeg
apt-add-repository ppa:jon-severinsson/ffmpeg
apt-get update
apt-get install ffmpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment