Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo apt install -y autoconf build-essential libpcre3 libpcre3-dev libssl-dev git unzip gcc cpp
- rm -rf nginx-* rtmp-module pcre-* zlib-* openssl-*
- # build pcre
- wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
- tar -zxf pcre-8.44.tar.gz
- cd pcre-8.44
- ./configure
- make
- sudo make install
- cd ..
- # build zlib
- wget http://zlib.net/zlib-1.2.11.tar.gz
- tar -zxf zlib-1.2.11.tar.gz
- cd zlib-1.2.11
- ./configure
- make
- sudo make install
- cd ..
- # build openssl
- wget http://www.openssl.org/source/openssl-1.1.1g.tar.gz
- tar -zxf openssl-1.1.1g.tar.gz
- cd openssl-1.1.1g
- ./Configure darwin64-x86_64-cc --prefix=/usr
- make
- sudo make install
- cd ..
- # build nginx with rtmp
- git clone https://github.com/arut/nginx-rtmp-module.git rtmp-module
- wget https://nginx.org/download/nginx-1.19.0.tar.gz
- tar zxf nginx-1.19.0.tar.gz
- cd nginx-1.19.0
- ./configure --add-module=../rtmp-module
- make
- sudo make install
- cd ..
- rm -rf nginx-* pcre-* zlib-* openssl-* rtmp-module
Advertisement
Add Comment
Please, Sign In to add comment