zoukankan      html  css  js  c++  java
  • intel webrtc 部署

    org link

    conference server

    Configure the MCU server

     1. set the maximum numbers of open files, running processes and maximum stack size to a large enough number

    sudo su
    echo "* hard nproc unlimited
    * soft nproc unlimited
    * hard nofile 163840
    * soft nofile 163840
    * hard stack 1024
    * soft stack 1024" >> /etc/security/limits.conf

    2.  add pam_limits.so in /etc/pam.d/login

    echo "session required pam_limits.so" >>  /etc/pam.d/login

    3. CentOS, update /etc/security/limits.d/xx-nproc.conf 

    echo "* soft nproc unlimited
    * hard nproc unlimited" >> /etc/security/limits.d/[0-9]*-nproc.conf
    cat /etc/security/limits.d/[0-9]*-nproc.conf

     4.   update  /etc/sysctl.conf:

    echo "fs.file-max=200000
    net.core.rmem_max=16777216
    net.core.wmem_max=16777216
    net.core.rmem_default=16777216
    net.core.wmem_default=16777216
    net.ipv4.udp_mem = 4096 87380 16777216
    net.ipv4.tcp_rmem=4096 87380 16777216
    net.ipv4.tcp_wmem=4096 65536 16777216
    net.ipv4.tcp_mem=8388608 8388608 16777216" >> /etc/sysctl.conf

    5. enable the above config

    /sbin/sysctl -p
    ulimit -a

    all in 1-5

    # 1
    sudo su
    echo "* hard nproc unlimited
    * soft nproc unlimited
    * hard nofile 163840
    * soft nofile 163840
    * hard stack 1024
    * soft stack 1024" >> /etc/security/limits.conf
    
    #2 
    echo "session required pam_limits.so" >>  /etc/pam.d/login
    
    #3
    echo "* soft nproc unlimited
    * hard nproc unlimited" >> /etc/security/limits.d/[0-9]*-nproc.conf
    cat /etc/security/limits.d/[0-9]*-nproc.conf
    
    #4
    echo "fs.file-max=200000
    net.core.rmem_max=16777216
    net.core.wmem_max=16777216
    net.core.rmem_default=16777216
    net.core.wmem_default=16777216
    net.ipv4.udp_mem = 4096 87380 16777216
    net.ipv4.tcp_rmem=4096 87380 16777216
    net.ipv4.tcp_wmem=4096 65536 16777216
    net.ipv4.tcp_mem=8388608 8388608 16777216" >> /etc/sysctl.conf
    
    # 5
    /sbin/sysctl -p
    ulimit -a

    Download 4.0 version

    ## 4.0 version
    # code
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12880/Intel_CS_WebRTC.v4.0.zip
    
    # doc
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12880/Intel_CS_WebRTC_User_Document.v4.0.zip
    
    # RN
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12880/ReleaseNotes.pdf

    Download 3.5.2 version

    # code
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12532/Intel_CS_WebRTC.v3.5.2.zip
    
    # doc
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12532/Intel_CS_WebRTC_User_Document.v3.5.zip
    
    #RN
    wget http://registrationcenter-download.intel.com/akdlm/irc_nas/12532/ReleaseNotes.pdf

    Intall 4.0 Version

    RTCVER=4.0
    sudo yum install unzip
    sudo yum -y install bzip2
    
    unzip Intel_CS_WebRTC.v$RTCVER.zip -d cs_webrtc
    cd cs_webrtc
    tar xf CS_WebRTC_Conference_Server_MCU.v[0-9].*[0-9].tgz
    cd Release-v$RTCVER
    
    echo "Choose Yes during install"
    ./video_agent/install_deps.sh
    
    echo "install_openh264.sh to install openh264 or uninstall_openh264.sh to uninstall openh264"
    echo "build ffmpeg with libfdkaac"
    
    ./audio_agent/compile_ffmpeg_with_libfdkaac.sh
    cp ffmpeg_libfdkaac_lib/* audio_agent/lib/
    
    echo "Check cert"
    ls management_console/cert nuve/cert portal/cert webrtc_agent/cert
    echo "Check configure file"
    ls management_console/management_console.toml nuve/nuve.toml portal/portal.toml webrtc_agent/agent.toml
    cat extras/basic_example/README.md

    安装node.js

    install  and epel install

    yum -y install epel-release
    yum -y update
    
    # curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
    # sudo yum -y install nodejs
    # sudo yum install gcc-c++ make
    
    sudo yum install nodejs npm --enablerepo=epel

    启动单机节点:

    首先需要安装mongodb

    How To Install MongoDB on CentOS 7

    org install on redhat

    How to Install MongoDB on CentOS 7

    echo "[mongodb]
    name=MongoDB Repository
    baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
    gpgcheck=0
    enabled=1" >> /etc/yum.repos.d/mongodb.repo
    
    yum -y install epel-release yum -y update # sudo yum -y install mongodb yum -y install mongodb-org mongodb-org-server rpm -qa |grep mongodb rpm -ql mongodb-org-server # rpm -ql mongodb systemctl start mongod systemctl status mongod mongostat mongostat --rowcount 5 2 netstat -nltp|grep mongod

    Install rabbitmq 

    How to Install RabbitMQ Server on CentOS 7,   rabbitmq org

    Install firewall

    install Erlang and RabbitMQ prefe from package cloud

    curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
    yum -y install erlang socat
    erl -version
    
    
    # install firewall
    sudo yum install firewalld
    sudo systemctl start firewalld
    sudo systemctl enable firewalld
    sudo systemctl status firewalld
    
    firewall-cmd --zone=public --permanent --add-port=4369/tcp
    firewall-cmd --zone=public --permanent --add-port=25672/tcp
    firewall-cmd --zone=public --permanent --add-port=5671-5672/tcp
    firewall-cmd --zone=public --permanent --add-port=15672/tcp
    firewall-cmd --zone=public --permanent --add-port=61613-61614/tcp
    firewall-cmd --zone=public --permanent --add-port=1883/tcp
    firewall-cmd --zone=public --permanent --add-port=8883/tcp
    firewall-cmd --reload
    setsebool -P nis_enabled 1
    
    
    # rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
    # rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
    # wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.4/rabbitmq-server-3.7.4-1.el7.noarch.rpm
    # rpm -Uvh rabbitmq-server-3.7.4-1.el7.noarch.rpm
    
    curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
    yum -y install rabbitmq-server
    echo "NODENAME=rabbit@localhost" >> /etc/rabbitmq/rabbitmq-env.conf
    echo "127.0.0.1 $HOSTNAME" >> /etc/hosts systemctl start rabbitmq
    -server systemctl enable rabbitmq-server systemctl status rabbitmq-server
    firewall-cmd --zone=public --permanent --add-port=80/tcp
    firewall-cmd --zone=public --permanent --add-port=8080/tcp
    firewall-cmd --zone=public --permanent --add-port=8000/tcp
    firewall-cmd --zone=public --permanent --add-port=3000/tcp
    firewall-cmd --zone=public --permanent --add-port=3001/tcp
    firewall-cmd --zone=public --permanent --add-port=3004/tcp
    firewall-cmd --reload

    install

     bin/init-all.sh [--deps]

     start

    bin/start-all.sh

    stop

    bin/stop-all.sh

    client:

    window github

    REF:

     基于WebRTC技术的多人音视频解决方案 

     H.323和SIP协议

    SRTP

    VP8

    WebRTC

    SVC和视频通信

    kurento

    licode

    How to open port in centOS

    video benifits

    7 Benefits of Video Conferencing

    DXVA是DirectX Video Acceleration

  • 相关阅读:
    [循环卷积]总结
    [FFT/NTT/MTT]总结
    [BZOJ 4870] 组合数问题
    [BZOJ 4809] 相逢是问候
    [BZOJ 4591] 超能粒子炮-改
    __getattribute__
    __repr__
    __reduce__
    数据库查询转excel小工具
    Git常用操作
  • 原文地址:https://www.cnblogs.com/shaohef/p/8969243.html
Copyright © 2011-2022 走看看