flvjs is not defined
问题背景:
本人引用bilibili开源flv.js在网页端做一个拉流直播功能,nginx作推拉流服务,并且nginx做了反向代理。
nginx服务端口号为80,web页面端口号为8080,反向代理后80端口也能登上web端页面。
通过8080端口登上web页面能成功拉流显示,但是通过80端口登上web页面拉流却失败了,并且打印出如下图错误信息。
(以上正交测试能证明:flv.js模块的调用是没有问题的,问题应该出在nginx服务上)
问题描述:
ERR_CONTENT_LENGTH_MISMATCH
flvjs is not defined
player is not defined
解决问题:
1、进入到nginx的proxy_temp目录下,查看所有文件的属性状态,
如下图显示,各文件所有者都是root
2、查看当前nginx服务的使用者
看到worker process的使用者为nobody
ps aux | grep nginx
3、修改nginx的配置文件(nginx/conf/nginx.conf)
在worker process前插入一行:
user root;
重启nginx,刷新web端再次拉流,成功!
完结、撒花!
flvjs is not defined相关推荐
- The bean 'xxxx.FeignClientSpecification', defined in null, could not be registered. A bean with that
错误信息: The bean 'sxbs-mall3.FeignClientSpecification', defined in null, could not be registered. A be ...
- C++ 预编译的时候使用defined 的含义
defined 可以理解为定义了 defined(xx) 是否成立的就是xx 是否被宏定义,若果被宏定义了,则成立,如果没有被宏定义,则不成立, 写个demo 理解下 #include <ios ...
- NameError: name xx is not defined
这个问题有很多类型的,这里说下我遇到的这个类型 首先我是获取input 值之后提示NameError: name xx is not defined 最后发现是python 2x 与 python 3 ...
- git user name is not defined
使用android studio 设置git 提交代码的时候弹框提示git user name is not defined 这个是第一次提交代码的时候 输入git仓库的账号和密码 就行了...
- Python报错:NameError: name ‘wraps‘ is not defined
@wraps(func) NameError: name 'wraps' is not defined 解决方法: (1)安装functiontools:pip install functiontoo ...
- 解决Neither the JAVA_HOME nor the JRE_HOME environment variable is defined问题
问题描述: 在cmd窗口使用 startup 命令启动Tomcat时,出现 Neither the JAVA_HOME nor the JRE_HOME environment variable is ...
- DllMain already defined in dllmain.obj错误
错误 uafxcw.lib(dllmodul.obj) : error LNK2005: DllMain already defined in dllmain.obj 修改: 去掉宏定义 _USRDL ...
- 2.Python中的reload函数以及not defined reload
来源: [转]python3中reload() - Excaliburer - 博客园 https://www.cnblogs.com/wangkundentisy/articles/4452449. ...
- Target runtime Apache Tomcat 6.0 is not defined
在problems中显示错误是:Target runtime Apache Tomcat 6.0 is not defined. 在网上查了一下终于找到解决方法.方法是:在工程目录下的.setting ...
- Coefficients: (1 not defined because of singularities)
Coefficients: (1 not defined because of singularities) 目录 Coefficients: (1 not defined because of si ...
最新文章
- 程序包com.sun.image.codec.jpeg.JPEGCo不存在解决办法
- xmind修改默认配置
- 【采用】风控体系的一般架构
- 在计算机应用领域 cad的指,在计算机应用领域,CAD的指的是____
- python里textfield_Django:为什么我的CharField没有得到类vTextField?
- 有面值为1元、3元和5元的硬币若干枚,如何用最少的硬币凑够11元?
- Scikit-learn:分类classification
- matlab dlt标定,实验三 Matlab图像处理基本操作及摄像机标定(DLT)
- 百度股市通如何实现智能选股?
- 51Job行业分类和行业编号汇总,格式:Json
- 浅析游戏音效制作后期的创新
- 六度分离 (Floyd算法)
- 意间ai绘画怎么输入关键词,让图片变得好看?
- 九阳神功足疗是什么?分析美团按摩项目,泡脚足浴排第一
- arc用matlab表示,arctanx在matlab中怎么表示?
- mysql怎样添加一条数据_sql语句怎么添加一条记录?
- 网络安全行业与就业-网络安全事件分类
- 计算机开机界面图片怎么修改,Win10系统怎样更改电脑开机密码页面的图片
- java 获取路由器mac_求好人帮助,如何用java语言获取像无线路由器上的MAC地址,我会重赏...
- cat5和cat5e的区别_具有功能以及CAT5与CAT6的CAT5电缆标准是什么?