Intel_CS_WebRTC 验证性测试
机器: Centos 7.2
一、配置阿里云源
1 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
2
3 yum clean all
4
5 yum makecache
二、安装node.js 6.9.5
1 wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.gz
2
3 tar -xzvf node-v6.9.5-linux-x64.tar.gz
4
5 mv node-v6.9.5-linux-x64 /opt/
6
7 ln -s /opt/node-v6.9.5-linux-x64/bin/node /usr/local/bin/node
8
9 ln -s /opt/node-v6.9.5-linux-x64/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
三、安装mongodb
1 vi /etc/yum.repos.d/mongodb-org-3.2.re //添加以下内容
2
3 [mongodb-org-3.2]
4
5 name=MongoDB Repository
6
7 baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
8
9 gpgcheck=0
10
11 enabled=1
12
13 yum install -y mongodb-org
14
15 service mongod start
四、安装RabbitMQ
1 yum install erlang
2
3 rpm -ivh erlang-20.1.1-1.el7.centos.x86_64.rpm
4
5 rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
6
7 yum install rabbitmq-server-3.6.5-1.noarch.rpm
8
9 /sbin/service rabbitmq-server start
五、配置Centos系统参数
1、更新/etc/security/limits.conf添加
1 * hard nproc unlimited
2
3 * soft nproc unlimited
4
5 * hard nofile 163840
6
7 * soft nofile 163840
8
9 * hard stack 1024
10
11 * soft stack 1024
2、更新 /etc/pam.d/login 添加
1 session required pam_limits.so
3、更新 /etc/security/limits.d/xx-nproc.conf添加
1 * soft nproc unlimited
2
3 * hard nproc unlimited
4、更新/etc/sysctl.conf添加
1 fs.file-max=200000
2 net.core.rmem_max=16777216
3 net.core.wmem_max=16777216
4 net.core.rmem_default=16777216
5 net.core.wmem_default=16777216
6 net.ipv4.udp_mem = 4096 87380 16777216
7 net.ipv4.tcp_rmem=4096 87380 16777216
8 net.ipv4.tcp_wmem=4096 65536 16777216
9 net.ipv4.tcp_mem=8388608 8388608 16777216
5、执行 /sbin/sysctl -p 确认配置
6、执行ulimit -a 确认配置
7、安装MCU Server
1 tar -xzvf CS_WebRTC_Conference_Server_MCU.v3.5.tgz
8、安装Cisco OpenH264* Library
1 cd Release-v3.5/video-agent
2
3 ./install_deps.sh
9、安装ffmpeg with libfdk_aac
1 cd Release-v3.5/audio-agent
2
3 ./compile_ffmpeg_with_libfdkaac.sh
六、启动服务
1 ./init-all.sh
1 ./start-all.sh
关闭防火墙
1 systemctl stop firewalld.service
七、intel webrtc控制台管理
Google浏览器输入 http://192.168.12.131:3000/console/
输入以下任意一组参数进入配置,两组配置参数略有不同
superServiceId: 5a9e7034d639a062f931babc
superServiceKey: 52GZVByWk0lOjJGPiiqstVUuUFMftt58ktWHy0ywthxF/6d9pCqg5Pb3hW2np4QfPazfn6JxoRGvpq3dhKCnPYiHw6m4TCemN4lMmMS+3JVVRA732E81Iwqsmq9Y3T5X1bWczrCdVP2qmMfnZ1HWxQ9rbF4z+g6HsX08XHQOKpY=
sampleServiceId: 5a9e7034d639a062f931babd
sampleServiceKey: pIgkspu0l8HfCanYZxiqNRc4onPZVXUz/zjeJp/ibSiZteVG0GEuRpmjOtWrPDmG+SKg0c/vCVcWWaOBkydIdRiVtZREODkNcELs39aCiPKk63WqIL5M2JPZKx0IiX9ZQd/zNBWsZlEE2/lraN/Ynq/cOTuNoEcsogD5RClUBDg=
以上为init-all启动服务时的ID和Key,输入第二组进入Room配置
八、测试程序
进入房间,浏览器输入https://192.168.12.131:3004/?room=5a9e71738abba763521bd142
官方配置文档:
https://software.intel.com/en-us/documentation/webrtc-conference-server-guide
技术交流群: 347769318