Skip to content

Instantly share code, notes, and snippets.

@peerasan
Created June 8, 2019 14:36
Show Gist options
  • Select an option

  • Save peerasan/4a29e07dcd30708fe737e45005e0fc92 to your computer and use it in GitHub Desktop.

Select an option

Save peerasan/4a29e07dcd30708fe737e45005e0fc92 to your computer and use it in GitHub Desktop.
compile nginx + rtmp
#compile nginx
apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
mkdir /root/src
cd /root/src
wget https://nginx.org/download/nginx-1.13.8.tar.gz
tar -xvf nginx-1.13.8.tar.gz
cd nginx-1.13.8
./configure
make
make install
########################################
#compile nginx-rtmp
mkdir /root/src
cd /root/src
wget https://github.com/arut/nginx-rtmp-module/archive/v1.2.1.tar.gz
tar -xvf v1.2.1.tar.gz
cd /root/src/nginx-1.13.8
./configure --add-module=/root/src/nginx-rtmp-module-1.2.1 \
--with-http_ssl_module \
--http-fastcgi-temp-path=fastcgi \
--without-http_gzip_module \
--prefix=/usr/local/nginx-streaming/
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment