推流服务器方案一 一、前期准备 操作系统:Centos7 Linux 系统 Nginx版本:nginx-1.22.0.tar.gz RTMP模块:nginx-rtmp-module 推流工具:OBS-Studio 拉流工具 二、环境搭建 1.安装依赖 yum install gcc make pcr
3. 安装依赖库 为了支持RTMP模块,我们需要安装一些依赖库: sudoyum install -y pcre pcre-devel zlib zlib-devel openssl openssl-devel 4. 下载编译 Nginx with RTMP 模块 cd~wgethttp://nginx.org/download/nginx-1.18.0.tar.gz...
--prefix=/opt/nginx --with-stream --with-http_ssl_module --with-stream_ssl_module --with-debug --add-module=../nginx-rtmp-module 文末提供Windows版本已经编译好的exe下载 3、配置Nginx.conf 基本的nginx配置,这里就不进行介绍了,需要了解的可以参考我其他博客,里面有介绍。这里只介绍rtmp段的定义。
5. 下载安装好openssl后,再次进入到Nginx文件夹内进行编译 需要注意,下方 --add-module 和 --with-openssl 指定的是源码目录! ./configure --prefix=/usr/local/nginx-with-rtmp-module --add-module=/home/lmw/MINE/nginx-rtmp-module/nginx-rtmp-module-master --with-openssl=/home/lmw/MINE/openssl/ope...
需要注意,下方 --add-module 和 --with-openssl 指定的是源码目录! ./configure --prefix=/usr/local/nginx-with-rtmp-module --add-module=/home/lmw/MINE/nginx-rtmp-module/nginx-rtmp-module-master --with-openssl=/home/lmw/MINE/openssl/openssl-1.0.2h ...
下载Nginx解压,并添加rtmp和openssl支持 如果需要nginx监控模块 下面倒数第二行后面添加 --with-http_stub_status_module --with-http_stub_status_module //这里我安装的是 nginx-1.10.3 版本 [root~]# wget http://nginx.org/download/nginx-1.10.3.tar.gz ...
1、首先需要装nginx和nginx-rtmp-module;不会可以Google。 2、实现rtmp拉流 2-1、需要一个查看rtmp服务器的推拉流状态的stat; 这个下载的nginx-rtmp-module里面不一定有stat.xsl文件,没有的话可以在nginx.conf设置到你指定的文件夹下, 例如: //http{ }内 ...
1.在已经安装 nginx 的前提下,搭建rtmp服务器: nginx和rtmp文件目录结构 2.进入 nginx 目录,vi config.sh 创建脚本文件,内容如下 安装脚本:避免冲突影响其他(起别名) nginx./auto/configure --prefix=/usr/local/nginx1 \ --with-http_v2_module \ ...
# 修改端口号 http { server { listen 5387; server_name localhost; } } # 增加监听 rtmp 模块, 这里与上面的 http 模块并列位置,即无父节点 rtmp { server { listen 5388; #直播流配置 application rtmplive { live on; #为 rtmp 引擎设置最大连接数。默认为 off max_connections 1024; } application...
4. 下载编译 Nginx with RTMP 模块 代码语言:javascript 复制 cd~wget http://nginx.org/download/nginx-1.18.0.tar.gz tar-zxvf nginx-1.18.0.tar.gz cd nginx-1.18.0# 下载 nginx-rtmp-module git clone https://github.com/arut/nginx-rtmp-module.git ...