kurento搭建以及运行kurento-hello-world
搭建环境的系统是ubuntu
1.kurento服务器搭建
运行如下脚本即可完成安装
#!/bin/bash echo "deb http://ubuntu.kurento.org trusty kms6" | sudo tee /etc/apt/sources.list.d/kurento.list wget -O - http://ubuntu.kurento.org/kurento.gpg.key | sudo apt-key add - sudo apt-get update sudo apt-get install kurento-media-server-6.0
2.运行kurento服务器
#!/bin/bash sudo service kurento-media-server-6.0 start #sudo service kurento-media-server-6.0 stop
3.安装nodejs和bower
#!/bin/bash curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install -y nodejs sudo npm install -g bower
4.下载DEMO代码以及运行
#!/bin/bash sudo service kurento-media-server-6.0 stop sudo service kurento-media-server-6.0 start git clone https://github.com/Kurento/kurento-tutorial-node.git cd kurento-tutorial-node/kurento-hello-world git checkout 6.6.0 npm install npm start
运行完后就可以在chrome浏览器里面打开链接了例如ubuntu的IP是192.168.2.133
就可以用浏览器打开https://192.168.2.133:8443可以获取到如下内容了