1、

搭建好nginx服务器,添加如下代码后

Connection to tcp://39.96.3.215:1935 failed: Error number -138 occurred

浏览器输入地址可用正常访问,但是连接推流地址时报如下的错误:

[tcp @ 000002ae90169540] Connection to tcp://39.96.3.215:1935 failed: Error number -138 occurred
[rtmp @ 000002ae90169440] Cannot open connection tcp://39.96.3.215:1935
rtmp://39.96.3.215:1935/live/nicole: Unknown errorsq=    0B f=0/0

Connection to tcp://39.96.3.215:1935 failed: Error number -138 occurred

 

原因:阿里云服务器需要手动打开所要访问的端口

 

解决办法:

在安全组添加配置规则,打开1935端口

Connection to tcp://39.96.3.215:1935 failed: Error number -138 occurred

再次访问时,出现如下界面表示成功:

ffplay rtmp://39.96.3.215/live/nicole

Connection to tcp://39.96.3.215:1935 failed: Error number -138 occurred

相关文章:

  • 2021-10-19
  • 2021-05-31
  • 2021-07-22
  • 2022-12-23
  • 2021-06-28
  • 2021-09-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-11-25
  • 2021-05-26
  • 2022-12-23
  • 2022-01-02
相关资源
相似解决方案