配置coturn服务器
来源:互联网 发布:东方有线网络 客服电话 编辑:程序博客网 时间:2024/05/02 00:46
coturn功能比较全,配合WebRTC和Chrome使用蛮好,我在Ubuntu Server 14.04下配置了一下,过程记录在这里。
coturn的资料
github主页:https://github.com/coturn/coturn。
coturn配置文档:https://github.com/coturn/coturn/wiki/CoturnConfig。
turnserver命令的使用:https://github.com/coturn/coturn/wiki/turnserver。
Ubuntu下的安装
可能默认的apt源里没有coturn对应的deb包,参考这个链接https://packages.debian.org/sid/amd64/coturn/download来修改sources.list,然后执行sudo apt-get update
更新一下,接下来执行下面的命令就可以安装了:
sudo apt-get install coturn
- 1
- 1
现在的版本是4.5.0.5,实现了RFC 3489 、5389、5766、5780、6062、6156,可以作为STUN或TURN服务器使用。
添加认证用户
coturn有一个工具,turnadmin,可以添加用户,使用类似下面的命令:
sudo turnadmin -a -u username -r realm -p password
- 1
- 1
具体可能是这样的:
sudo turnadmin -a -u foruok -r foruok.com -p 12345678
- 1
- 1
turnadmin默认使用SQLite3,对应的数据库文件为/var/lib/turn/turndb(Ubuntu Server上的位置,其它系统可能不一致)。
启动turnserver
类似这样的命令:
sudo turnserver -n -a --listening-ip=192.168.40.124 --listening-port=3478 -r foruok.com
- 1
- 1
-n 指定不要配置文件
-a 指定支持WebRTC的 long-term credentials mechanism
-r 指定realm
更多参数,参见:https://github.com/coturn/coturn/wiki/turnserver。
相关阅读:
- WebRTC源码中turnserver的使用方法
- Ubuntu 14.04下编译WebRTC
- WebRTC学习资料大全
- 配置coturn服务器
- Coturn配置
- coturn 配置
- Coturn配置
- Webrtc服务器搭建 (coturn)
- COTURN服务器使用
- coturn(turn)服务器搭建
- webrtc coturn服务器搭建
- 搭建APPRTC服务器时,遇到的coturn服务器配置及调用的问题解决
- coturn(turn/stun)服务器搭建
- 测试coturn服务器是否可用(Webrtc)
- Ubuntu 14.04 coturn 安装 与 配置
- linux 下搭建从coturn服务器(穿透服务器)
- 关于安装Turn服务器:coturn,TurnServer,Restund,reTurnServer
- webRTC+coturn穿透服务器的安装与搭建
- Ubuntu Server 14.04下配置coturn for WebRTC
- p2p webrtc服务器搭建系列1: 房间,信令,coturn打洞服务器
- coturn 命令
- bzoj1043: [HAOI2008]下落的圆盘
- WPF实战之引用DynamicDataDisplay插件的过程
- TCP协议三次握手和四次挥手
- 汇编翻转总结及答复(第7周)
- AndroidAutoLayout使用注意事项
- 配置coturn服务器
- mysql binlog 系列课程之(三)---mysql 查看binlog
- 洛谷 P1984 [SDOI2008]烧水问题
- FreeMarker之概念介绍(一)
- RocketMQ 部分 配置项
- qschedule http interface
- codeforces 680C Bear and Prime 100
- datatables的ajax
- three.js 共面的问题