当前位置:网站首页>Srs4.0 installation steps
Srs4.0 installation steps
2022-07-28 19:20:00 【One meter sunshine_ Angel】
Preface :
use srs Build streaming services , Realize multi person video call on the web
Specific steps :
# install docker
curl -sSL https://get.daocloud.io/docker | sh
#/etc/docker/ Create a file under the path daemon.json
{
“registry-mirrors”: [“https://alzgoonw.mirror.aliyuncs.com”]
}
# Restart the service
systemctl restart docker
sudo systemctl status docker
# Add environment variable ( New clothes need to be added , It can be executed every time a terminal is opened , You can also add to /etc/profile in )
export CANDIDATE=“10.222.5.106”
# The startup parameters are different from those in the tutorial , Because it needs to run in the background , So I added -d( Background operation ) and –restart=always( Crash auto restart )
# start-up srs The server , Change parameters by yourself
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
# Start signaling
docker run -d --restart=always -p 1989:1989 registry.cn-hangzhou.aliyuncs.com/ossrs/signaling:1
# start-up http turn https, because chrome requirement webrtc Must go https agreement , If only rtmp, You don't need this
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/
summary :
Learned about webRTC、SRS、 Streaming business , Thank you for your work needs and the help of your colleagues , Let me grow . Finally, it was modified by front-end colleagues and applied in magicFrem On the project , Very happy

边栏推荐
- How new people get started learning software testing
- QT widget promoted to QWidget
- Software testing dry goods
- N32 replaces STM32. Don't ignore these details!
- Qt: 一个SIGNAL绑定多个SLOT
- Getting started with QT & OpenGL
- Libgdx learning path 01: libgdx introduction and running tutorial
- Creating new projects and adding your own programs
- ECS 5 workflow
- Application of time series database in Hydropower Station
猜你喜欢

About ASM redundancy

SRS4.0安装步骤

4、 Interface requests data to update input information interactively

The login interface of modern personal blog system modstartblog v5.4.0 has been revised and the contact information has been added

SQL审核工具自荐Owls

cv5200无线WiFi通信模块,视频图像传输无线化,实时无线通信技术

PyG搭建异质图注意力网络HAN实现DBLP节点预测

Today in history: Microsoft acquires qdos; Model testing pioneer birth; The first laser typesetting Chinese newspaper

Swiftui component how to implement textfield of hidden part of phone number mask (tutorial includes source code)

【雷达】基于核聚类实现雷达信号在线分选附matlab代码
随机推荐
[filter tracking] target tracking based on EKF, TDOA and frequency difference positioning with matlab code
Application value of MES production management system to equipment
TSDB and blockchain
Is there any prospect and way out for software testing?
Software testing dry goods
【图像分割】基于方向谷形检测实现静脉纹路分割附MATLAB代码
Interpretation of ue4.25 slate source code
QT widget promoted to QWidget
BM16 delete duplicate elements in the ordered linked list -ii
After several twists and turns, how long can the TSDB C-bit of influxdb last?
Youqilin system installation beyondcomare
From Bayesian filter to Kalman filter (2)
SQL custom automatic calculation
Is the software testing industry really saturated?
机器学习 --- 模型评估、选择与验证
2022 Hangdian multi school field 2 1011 DOS card (line segment tree)
Is it useful to learn software testing?
Leetcode skimming - super power 372 medium
搜索问题与技术
OAI L3 and L2 interface analysis