Skip to content

Instantly share code, notes, and snippets.

@richardjortega
Last active September 19, 2019 01:58
Show Gist options
  • Save richardjortega/90ae48263f94cd25310701f80b17c605 to your computer and use it in GitHub Desktop.
Save richardjortega/90ae48263f94cd25310701f80b17c605 to your computer and use it in GitHub Desktop.
Install NGINX with dependencies and RTMP module
git clone https://github.com/arut/nginx-rtmp-module
sudo apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev
wget https://nginx.org/download/nginx-1.16.1.tar.gz
tar zxf nginx-1.16.1.tar.gz
cd nginx-1.16.1
./configure \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-stream \
--add-module=../nginx-rtmp-module
make -j 2
sudo make install
sudo ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment