Updated Getting started with nginx rtmp (markdown)

ispyisail
2016-12-23 13:04:34 +13:00
parent 4e1c3d86e8
commit 636b061ebe

@ -1,18 +1,22 @@
## Download, build and install
CD to build directory (home)
Build Utilities
cd /usr/build
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
Make and CD to build directory (home)
sudo mkdir ~/build && cd ~/build
Download & unpack latest nginx-rtmp (you can also use http)
git clone git://github.com/arut/nginx-rtmp-module.git
sudo git clone git://github.com/arut/nginx-rtmp-module.git
Download & unpack nginx (you can also use svn)
wget http://nginx.org/download/nginx-1.2.4.tar.gz
tar xzf nginx-1.2.4.tar.gz
cd nginx-1.2.4
sudo wget http://nginx.org/download/nginx-1.10.2.tar.gz
sudo tar xzf nginx-1.10.2.tar.gz
cd nginx-1.10.2
Build nginx with nginx-rtmp
@ -22,14 +26,22 @@ Build nginx with nginx-rtmp
For nginx 1.3.4-1.5.0 more options are needed
./configure --add-module=/usr/build/nginx-rtmp-module --with-http_ssl_module
make
make install
sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module
sudo make
sudo make install
Start nginx Server
sudo /usr/local/nginx/sbin/nginx
## Set up live streaming
To set up RTMP support you need to add `rtmp{}` section to `nginx.conf` (can be found in PREFIX/conf/nginx.conf). Stock `nginx.conf` contains only `http{}` section.
sudo nano /usr/local/nginx/conf/nginx.conf
Use this `nginx.conf` instead of stock config:
#user nobody;