• apt-get install python-software-properties dpkg-dev git
  • add-apt-repository ppa:nginx/stable && sudo apt-get update
  • mkdir build && cd build
  • apt-get source nginx-full && cd nginx-*
  • apt-get build-dep nginx-full
  • git clone git://github.com/arut/nginx-rtmp-module.git debian/modules/nginx-rtmp-module
  • nano debian/rules
  • insert--add-module=$(MODULESDIR)/nginx-rtmp-module \ in common
  • dpkg-buildpackage -uc -b
  • dpkg -i ../nginx-common_1.10.0-0ubuntu0.16.04.4_all.deb ../nginx-full_1.10.0-0ubuntu0.16.04.4_amd64.deb