mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-14 09:08:15 +08:00
Updated Getting started with nginx rtmp (markdown)
@ -1,18 +1,22 @@
|
|||||||
## Download, build and install
|
## 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)
|
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)
|
Download & unpack nginx (you can also use svn)
|
||||||
|
|
||||||
wget http://nginx.org/download/nginx-1.2.4.tar.gz
|
sudo wget http://nginx.org/download/nginx-1.10.2.tar.gz
|
||||||
tar xzf nginx-1.2.4.tar.gz
|
sudo tar xzf nginx-1.10.2.tar.gz
|
||||||
cd nginx-1.2.4
|
cd nginx-1.10.2
|
||||||
|
|
||||||
Build nginx with nginx-rtmp
|
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
|
For nginx 1.3.4-1.5.0 more options are needed
|
||||||
|
|
||||||
./configure --add-module=/usr/build/nginx-rtmp-module --with-http_ssl_module
|
sudo ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module
|
||||||
make
|
sudo make
|
||||||
make install
|
sudo make install
|
||||||
|
|
||||||
|
Start nginx Server
|
||||||
|
|
||||||
|
sudo /usr/local/nginx/sbin/nginx
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Set up live streaming
|
## 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.
|
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:
|
Use this `nginx.conf` instead of stock config:
|
||||||
|
|
||||||
#user nobody;
|
#user nobody;
|
||||||
|
Reference in New Issue
Block a user