Intel_CS_WebRTC 验证性测试

 

机器: Centos 7.2

一、配置阿里云源

   wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

   yum clean all

   yum makecache

Intel_CS_WebRTC 验证性测试

二、安装node.js 6.9.5

 wget https://nodejs.org/dist/v6.9.5/node-v6.9.5-linux-x64.tar.gz

 tar -xzvf node-v6.9.5-linux-x64.tar.gz

 mv node-v6.9.5-linux-x64 /opt/

 ln -s /opt/node-v6.9.5-linux-x64/bin/node /usr/local/bin/node

 ln -s /opt/node-v6.9.5-linux-x64/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm

三、安装mongodb

 vi /etc/yum.repos.d/mongodb-org-3.2.re //添加以下内容

 [mongodb-org-3.2]

 name=MongoDB Repository

 baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/     

 gpgcheck=     

 enabled=     

 yum install -y mongodb-org

 service mongod start

四、安装RabbitMQ

 yum install erlang

 rpm -ivh erlang-20.1.-.el7.centos.x86_64.rpm

 rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

 yum install rabbitmq-server-3.6.-.noarch.rpm

 /sbin/service rabbitmq-server start

五、配置Centos系统参数

  1、更新/etc/security/limits.conf添加

 * hard nproc unlimited

 * soft nproc unlimited

 * hard nofile 

 * soft nofile 

 * hard stack 

 * soft stack 

  2、更新 /etc/pam.d/login 添加

 session required pam_limits.so

 Intel_CS_WebRTC 验证性测试

  3、更新 /etc/security/limits.d/xx-nproc.conf添加

 * soft nproc unlimited

  * hard nproc unlimited

 Intel_CS_WebRTC 验证性测试

  4、更新/etc/sysctl.conf添加

 fs.file-max=
net.core.rmem_max=
net.core.wmem_max=
net.core.rmem_default=
net.core.wmem_default=
net.ipv4.udp_mem =
net.ipv4.tcp_rmem=
net.ipv4.tcp_wmem=
net.ipv4.tcp_mem=

Intel_CS_WebRTC 验证性测试

  5、执行 /sbin/sysctl -p 确认配置

  6、执行ulimit -a 确认配置

  7、安装MCU Server

 tar -xzvf CS_WebRTC_Conference_Server_MCU.v3..tgz

  8、安装Cisco OpenH264* Library

 cd Release-v3./video-agent

 ./install_deps.sh

  9、安装ffmpeg with libfdk_aac

 cd Release-v3./audio-agent

 ./compile_ffmpeg_with_libfdkaac.sh

六、启动服务

 ./init-all.sh

Intel_CS_WebRTC 验证性测试

 ./start-all.sh

Intel_CS_WebRTC 验证性测试

关闭防火墙

 systemctl stop firewalld.service

七、intel webrtc控制台管理

Google浏览器输入 http://192.168.12.131:3000/console/

 Intel_CS_WebRTC 验证性测试

输入以下任意一组参数进入配置,两组配置参数略有不同

superServiceId: 5a9e7034d639a062f931babc

superServiceKey: 52GZVByWk0lOjJGPiiqstVUuUFMftt58ktWHy0ywthxF/6d9pCqg5Pb3hW2np4QfPazfn6JxoRGvpq3dhKCnPYiHw6m4TCemN4lMmMS+3JVVRA732E81Iwqsmq9Y3T5X1bWczrCdVP2qmMfnZ1HWxQ9rbF4z+g6HsX08XHQOKpY=

sampleServiceId: 5a9e7034d639a062f931babd

sampleServiceKey: pIgkspu0l8HfCanYZxiqNRc4onPZVXUz/zjeJp/ibSiZteVG0GEuRpmjOtWrPDmG+SKg0c/vCVcWWaOBkydIdRiVtZREODkNcELs39aCiPKk63WqIL5M2JPZKx0IiX9ZQd/zNBWsZlEE2/lraN/Ynq/cOTuNoEcsogD5RClUBDg=

以上为init-all启动服务时的ID和Key,输入第二组进入Room配置

Intel_CS_WebRTC 验证性测试

八、测试程序

进入房间,浏览器输入https://192.168.12.131:3004/?room=5a9e71738abba763521bd142

Intel_CS_WebRTC 验证性测试

官方配置文档:

https://software.intel.com/en-us/documentation/webrtc-conference-server-guide

技术交流群: 347769318

上一篇:Android Service学习之AIDL, Parcelable和远程服务


下一篇:socket.io的websocket示例