Last active
January 21, 2020 17:27
-
-
Save naiwungmusic/1037f38d03b79a8e0e1f 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