Intel_CS_WebRTC 驗證性測試

 

機器: Centos 7.2node

1、配置阿里雲源linux

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

 

2、安裝node.js 6.9.5web

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

 

3、安裝mongodbmongodb

 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

 

4、安裝RabbitMQnpm

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

 

5、配置Centos系統參數centos

  一、更新/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

  二、更新 /etc/pam.d/login 添加session

1 session required pam_limits.so

 

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

1 * soft nproc unlimited 2 
3  * hard nproc unlimited

 

  四、更新/etc/sysctl.conf添加ide

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

  八、安裝Cisco OpenH264* Library

1 cd Release-v3.5/video-agent 2 
3 ./install_deps.sh

  九、安裝ffmpeg with libfdk_aac

1 cd Release-v3.5/audio-agent 2 
3 ./compile_ffmpeg_with_libfdkaac.sh

 

6、啓動服務

1 ./init-all.sh

 

1 ./start-all.sh

 

關閉防火牆

1 systemctl stop firewalld.service

 

7、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

相關文章
相關標籤/搜索