Last active
September 19, 2019 01:58
-
-
Save richardjortega/90ae48263f94cd25310701f80b17c605 to your computer and use it in GitHub Desktop.
Install NGINX with dependencies and RTMP module
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
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