Forked from UbuntuEvangelist/setup-nginx-rtmp-on-ubuntu-14-04.sh
Last active
November 5, 2019 21:17
-
-
Save csi-lk/d12ba118df0f85d16daf16ef7703ab47 to your computer and use it in GitHub Desktop.
Setup Nginx-RTMP on Ubuntu 14.04
This file contains hidden or 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 -y 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 | |
add-apt-repository -y ppa:mc3man/trusty-media | |
apt-get update | |
apt-get install -y ffmpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment