1、编译SRS
GitHub - winlinvip/srs: Please use https://github.com/ossrs/srs
目前有1.0-release、2.0、3.0等版本 2.0官方文档地址:GitHub - winlinvip/srs: Please use https://github.com/ossrs/srs
1.1 如果是新系统,先安装git
CentOS:yum -y install git
1.2 源码下载:
git clone https://code.csdn.net/winlinvip/srs-csdn.git
1.3 git操作
a.改变SRS分支
切换到1.0分支
git pull && git checkout 1.0release
切换到2.0分支
git pull && git checkout 2.0release
我把源码下载到了/mnt目录,然后我们cd /mnt
b.查看当前分支
cd /mnt/srs-csdn;git branch
c.改变到2.0分支
git pull && git checkout 2.0release
1.4 编译安装
cd /mnt/srs-csdn/trunk
./configure -h #查看编译时的帮助,里面有一些指定的参数是情况加减,官方文档
开始编译:
./configure --prefix=/usr/local/srs --with-ssl --with-hls --with-hds --with-dvr --with-nginx --with-http-callback --with-h