系统环境
wujianjun@wujianjun-work ~ $ uname -aLinux wujianjun-work 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
软件环境
OBS(Open Broadcaster Software) v20.0.1 (Linux)
nginx version: nginx/1.13.6
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
built with OpenSSL 1.0.2g 1 Mar 2016
TLS SNI support enabled
configure arguments: with-pcre=pcre-8.38 add-module=nginx-rtmp-module-1.1.11
Nginx+obs安装及配置 安装obs
wujianjun@wujianjun-work ~ $ sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-nextwujianjun@wujianjun-work ~ $ sudo apt-get update && sudo apt-get install ffmpegwujianjun@wujianjun-work ~ $ sudo apt-get install obs-studiowujianjun@wujianjun-work ~ $ sudo add-apt-repository ppa:obsproject/obs-studiowujianjun@wujianjun-work ~ $ sudo apt-get update && sudo apt-get install obs-studio
nginx加装rtmp模块
nginx-rtmp-module ( https://github.com/arut/nginx-rtmp-module )
wujianjun@wujianjun-work ~ $ sudo apt-get install build-essentialwujianjun@wujianjun-work ~ $ wget wget http://nginx.org/download/nginx-1.13.6.tar.gzwujianjun@wujianjun-work ~/nginx-1.13.6 $ wget https://github.com/arut/nginx-rtmp-module/archive/v1.1.11.tar.gzwujianjun@wujianjun-work ~/nginx-1.13.6 $ tar -xvf v1.1.11.tar.gzwujianjun@wujianjun-work ~/nginx-1.13.6 $ wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.tar.gzwujianjun@wujianjun-work ~/nginx-1.13.6 $ tar -xvf pcre-8.38.tar.gzwujianjun@wujianjun-work ~/nginx-1.13.6 $ ls -all总用量 748drwxr-xr-x 9 wujianjun wujianjun 4096 10月 15 11:39 .drwxr-xr-x 63 wujianjun wujianjun 4096 10月 15 11:33 ..drwxr-xr-x 6 wujianjun wujianjun 4096 10月 15 11:33 auto-rw-r--r-- 1 wujianjun wujianjun 282456 10月 10 23:22 CHANGES-rw-r--r-- 1 wujianjun wujianjun 430416 10月 10 23:22 CHANGES.rudrwxr-xr-x 2 wujianjun wujianjun 4096 10月 15 11:33 conf-rwxr-xr-x 1 wujianjun wujianjun 2502 10月 10 23:22 configuredrwxr-xr-x 4 wujianjun wujianjun 4096 10月 15 11:33 contribdrwxr-xr-x 2 wujianjun wujianjun 4096 10月 15 11:33 html-rw-r--r-- 1 wujianjun wujianjun 1397 10月 10 23:22 LICENSEdrwxr-xr-x 2 wujianjun wujianjun 4096 10月 15 11:33 mandrwxrwxr-x 6 wujianjun wujianjun 4096 2月 13 2017 nginx-rtmp-module-1.1.11drwxr-xr-x 7 wujianjun wujianjun 4096 11月 23 2015 pcre-8.38-rw-r--r-- 1 wujianjun wujianjun 49 10月 10 23:22 READMEdrwxr-xr-x 9 wujianjun wujianjun 4096 10月 15 11:33 srcwujianjun@wujianjun-work ~/nginx-1.13.6 $ ./configure --with-pcre=pcre-8.38 --add-module=nginx-rtmp-module-1.1.11wujianjun@wujianjun-work ~/nginx-1.13.6 $ make && sudo make installwujianjun@wujianjun-work ~/nginx-1.13.6 $ ls -all /usr/local/nginx/总用量 24drwxr-xr-x 6 root root 4096 10月 15 16:11 .drwxr-xr-x 11 root root 4096 10月 15 16:11 ..drwxr-xr-x 2 root root 4096 10月 15 16:11 confdrwxr-xr-x 2 root root 4096 10月 15 16:11 htmldrwxr-xr-x 2 root root 4096 10月 15 16:11 logsdrwxr-xr-x 2 root root 4096 10月 15 16:11 sbin
新闻热点
疑难解答