Skip to content

Instantly share code, notes, and snippets.

@tajidyakub
Last active April 9, 2018 02:05
Show Gist options
  • Save tajidyakub/c82c777ac2c567915ff18a5c7e061eb3 to your computer and use it in GitHub Desktop.
Save tajidyakub/c82c777ac2c567915ff18a5c7e061eb3 to your computer and use it in GitHub Desktop.
Media streaming server di Ubuntu menggunakan Nginx rtmp module

Media Streaming Server dengan Nginx

Instalasi

Tambahkan repo nginx/mainline

$ echo "deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx" > /etc/apt/sources.list.d/nginx.list

Install / update nginx

$ apt-get update -y 

Menggunakan PPA di ubuntu

$ mkdir /usr/src/nginx
$ cd /usr/src/nginx
$ apt-get install dpkg-dev
$ apt-get source nginx
$ git clone https://github.com/arut/nginx-rtmp-module.git
$ wget http://nginx.org/download/nginx-1.12.2.tar.gz
$ tar -xzvf nginx-1.12.2.tar.gz
$ cd nginx-1.12.2/

Modifikasi file debian/rules dan tambahkan module rtmp di konfigurasi full

# debian/rules
  --add-module=/usr/src/nginx/nginx-rtmp-module \

Build dependencies dan generate .deb, install nginx-common dan nginx-full

$ apt-get build-dep nginx
$ dpkg-buildpackage -b
$ cd ..
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment