部署环境:Ubuntu 16.04 (Xenial)
步骤:
先定义系统:DISTRO="xenial"
添加下载的资源链接:
sudo tee "/etc/apt/sources.list.d/kurento.list" >/dev/null <<EOF
Kurento Media Server - Release packages
deb [arch=amd64] http://ubuntu.openvidu.io/6.7.1 $DISTRO kms6
EOF
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5AFA7A83
更新数据源:
sudo apt-get update
下载kurento服务器:
sudo apt-get install kurento-media-server
启动和关闭服务:
sudo service kurento-media-server start
sudo service kurento-media-server stop
(外网调用是需要)kurento服务调用的sturn和turn server 配置设置文件:
编辑etc/kurento/modules/kurento/WebRtcEndpoint.conf.ini里的
stunServerAddress=<serverIp>
stunServerPort=<serverPort>
和
turnURL=<user>:<password>@<serverIp>:<serverPort>
demo部署:
环境:
maven 3.5.0以上
jdk1.7以上
步骤:
官网下载maven解压:sudo tar -zxvf apache-maven-3.5.0-bin.tar.gz
配置maven环境在/etc/profile:
export M2_HOME=/root/apache-maven-3.5.0
export M2=M2_HOME/bin export MAVEN_OPTS="-Xms256m -Xmx512m" export PATH=M2:$PATH
刷新环境:source /etc/profile
检查maven是否部署成功:mvn -v
从GitHub上拉取demo:
git clone https://github.com/Kurento/kurento-tutorial-java.git
进入样例运行demo:
cd kurento-tutorial-java/kurento-hello-world
git checkout 6.7.1
mvn clean compile exec:java
访问:https://localhost:8443
kurento部署参照:
https://blog.csdn.net/running17/article/details/78268034