-
nginx 转发 rtmp 直播流
nginx转发rtmp流
场景描述:服务器1使用nginx-rtmp-module搭建了基于nginx的rtmp推流平台,用户推rtmp流只能推到服务器2,然后转发到服务器1。nginx默认只能转发http,转发rtmp需要另外编译转发tcp的模块。要求nginx版本大于1.9。
1、软件准备
nginx-1.20.2
2、编译安装
cd nginx-1.20.2
sudo ./configure --prefix=/usr/local/nginx --with-stream
sudo make
sudo make install
报错:
(1)./configure: error: C compiler cc is not found
(2)./configure: error: the HTTP rewrite module requires the PCRE library.
(3)./configure: error: SSL modules require the OpenSSL library.
统一解决:sudo apt-get install -y build-essential git-core bison openssl libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 autoconf libc6-dev libpcre3-dev libcurl4-nss-dev libxml2-dev libxslt-dev imagemagick libffi-dev
3、配置nginx
sudo vim /usr/local/nginx/conf/nginx.conf
项目fhadmin.cn
events {...}
# tcp反向代理
stream {
server {
listen 1935;
proxy_connect_timeout 10s;
proxy_timeout 15s;
proxy_pass 10.10.10.10:1935;
}
}
http {...}
4、启动nginx
sudo /usr/local/nginx/sbin/nginx
-------------------------------------------------------fhadmin.cn-----------自定义表单
定义模版:拖拽左侧表单元素到右侧区域,编辑表单元素,保存表单模版
表单模版:编辑维护表单模版,复制表单模版,修改模版类型,预览表单模版
我的表单:选择表单模版,编辑表单规则,是否上传图片、附件、开启富文本、挂靠流程开关等
表单数据:从我的表单进去可增删改查表单数据,修改表单规则
挂靠记录:记录表单数据和流程实例ID关联记录,可删除
原文:https://www.cnblogs.com/m17054598469/p/15735841.html
最新更新
求1000阶乘的结果末尾有多少个0
详解MyBatis延迟加载是如何实现的
IDEA 控制台中文乱码4种解决方案
SpringBoot中版本兼容性处理的实现示例
Spring的IOC解决程序耦合的实现
详解Spring多数据源如何切换
Java报错:UnsupportedOperationException in Col
使用Spring Batch实现批处理任务的详细教程
java中怎么将多个音频文件拼接合成一个
SpringBoot整合ES多个精确值查询 terms功能实
数据库审计与智能监控:从日志分析到异
SQL Server 中的数据类型隐式转换问题
SQL Server中T-SQL 数据类型转换详解
sqlserver 数据类型转换小实验
SQL Server数据类型转换方法
SQL Server 2017无法连接到服务器的问题解决
SQLServer地址搜索性能优化
Sql Server查询性能优化之不可小觑的书签查
SQL Server数据库的高性能优化经验总结
SQL SERVER性能优化综述(很好的总结,不要错
uniapp/H5 获取手机桌面壁纸 (静态壁纸)
[前端] DNS解析与优化
为什么在js中需要添加addEventListener()?
JS模块化系统
js通过Object.defineProperty() 定义和控制对象
这是目前我见过最好的跨域解决方案!
减少回流与重绘
减少回流与重绘
如何使用KrpanoToolJS在浏览器切图
performance.now() 与 Date.now() 对比