Forked from naiwungmusic/setup-nginx-rtmp-on-ubuntu-14-04.sh
Created
January 30, 2016 17:30
-
-
Save UbuntuEvangelist/6d7da3f87377d6f0e1cb to your computer and use it in GitHub Desktop.
Setup Nginx-RTMP on Ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://www.vultr.com/docs/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. | |
wget http://nginx.org/download/nginx-1.7.8.tar.gz | |
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip | |
#Extract the Nginx and Nginx-RTMP source. | |
tar -zxvf nginx-1.7.8.tar.gz | |
unzip master.zip | |
#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 | |
make install | |
#Install the Nginx init scripts. | |
wget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -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