当前位置:网站首页>SRS4.0安装步骤
SRS4.0安装步骤
2022-07-28 17:17:00 【一米阳光_Angel】
前言:
用srs搭建推流服务,实现网页端多人视频通话
具体步骤:
#安装docker
curl -sSL https://get.daocloud.io/docker | sh
#/etc/docker/路径下创建文件daemon.json
{
“registry-mirrors”: [“https://alzgoonw.mirror.aliyuncs.com”]
}
#重启服务
systemctl restart docker
sudo systemctl status docker
#加环境变量(新装需要加,可以每开一个终端执行一次,也可以添加到/etc/profile里)
export CANDIDATE=“10.222.5.106”
#启动参数和教程的不一样,因为要后台运行,所以加了-d(后台运行)和–restart=always(崩溃自动重启)
#启动srs服务器,自己改参数
docker run -d --restart=always --env CANDIDATE=$CANDIDATE -p 1935:1935 -p 8080:8080 -p 1985:1985 -p 8000:8000/udp registry.cn-hangzhou.aliyuncs.com/ossrs/srs:4 objs/srs -c conf/rtc2rtmp.conf
#启动信令
docker run -d --restart=always -p 1989:1989 registry.cn-hangzhou.aliyuncs.com/ossrs/signaling:1
#启动http转https,因为chrome要求webrtc必须走https协议,如果只用rtmp,不需要这个
docker run -d --restart=always -p 80:80 -p 443:443 registry.cn-hangzhou.aliyuncs.com/ossrs/httpx:v1.0.2 ./bin/httpx-static -http 80 -https 443 -ssk ./etc/server.key -ssc ./etc/server.crt -proxy http:// C A N D I D A T E : 1989 / s i g − p r o x y h t t p : / / CANDIDATE:1989/sig -proxy http:// CANDIDATE:1989/sig−proxyhttp://CANDIDATE:1985/rtc -proxy http://$CANDIDATE:8080/
总结:
学习了关于 webRTC、SRS、推流业务,感谢工作的需求和同事的帮助,让我成长。最终也被前端同事修改后应用在magicFrem项目上,很开心

边栏推荐
- C and SQL mixed programming, vs need to download what things
- If you want to learn software testing, where can you learn zero foundation?
- [image segmentation] vein segmentation based on directional valley detection with matlab code
- SwiftUI 组件之如何实现电话号码掩码隐藏部分的文本字段TextField(教程含源码)
- QT & OpenGL lighting
- What does real HTAP mean to users and developers?
- 6-20 vulnerability exploitation proftpd test
- Can the training software test be employed
- N32 replaces STM32. Don't ignore these details!
- Fundamentals of software testing and development | practical development of several tools in testing and development
猜你喜欢

Pytorch GPU yolov5 reports an error

As for the white box test, you have to be skillful in these skills~

真正的 HTAP 对用户和开发者意味着什么?
![[data analysis] realize SVDD decision boundary visualization based on MATLAB](/img/3b/72bb459a357f836b52aa79171d75fc.png)
[data analysis] realize SVDD decision boundary visualization based on MATLAB

How to write a JMeter script common to the test team

1、 My first wechat applet

QT user defined control user guide (flying Qingyun)

11 年膨胀 575 倍,微信为何从“小而美”变成了“大而肥”?

BM11 链表相加(二)

Introduction and advanced MySQL (III)
随机推荐
“讳疾忌医”的开源走不远
Pytorch GPU yolov5 reports an error
2、 Uni app login function page Jump
Introduction and advanced level of MySQL (II)
Swiftui swift forward geocoding and reverse geocoding (tutorial with source code)
What if svchost.exe of win11 system has been downloading?
[image segmentation] vein segmentation based on directional valley detection with matlab code
Differences between RDB and AOF for redis persistence
How big is it suitable for learning software testing?
11 年膨胀 575 倍,微信为何从“小而美”变成了“大而肥”?
QT user defined control user guide (flying Qingyun)
Xiaobai must see the development route of software testing
软件测试开发基础|测开中的几个工具开发实战
Swiftui component how to implement textfield of hidden part of phone number mask (tutorial includes source code)
[GXYCTF2019]StrongestMind
【图像隐藏】基于DCT、DWT、LHA、LSB的数字图像信息隐藏系统含各类攻击和性能参数附matlab代码
Full analysis of warehouse building on the lake: how to build a lake warehouse integrated data platform | deepnova technology collection series open class phase IV
三类6种地图可视化软件测评,最好用的工具居然是它
4 年后,Debian 终夺回“debian.community”域名!
OAI L3 and L2 interface analysis