服务器操作系统co,搭建coturn服务器

搭建coturn服务器

环境准备

文件配置

启动

测试

环境准备

(1)准备一台云服务器,安装Ubuntu18.04操作系统

(2)安装coturn

sudo apt install coturn

文件配置

配置文件位置

/etc/turnserver.conf

修改内容:

listening-port=3478

external-ip=49.233.183.129

realm= 网址

user=用户名:key

user=用户名:密码

启动

turnserver

结果入下:

0: log file opened: /var/tmp/turn_29200_2020-04-17.log

0:

RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server

Version Coturn-4.5.0.7 'dan Eider'

0:

Max number of open files/sockets allowed for this process: 1048576

0:

Due to the open files/sockets limitation,

max supported number of TURN Sessions possible is: 524000 (approximately)

0:

==== Show him the instruments, Practical Frost: ====

0: TLS supported

0: DTLS supported

0: DTLS 1.2 supported

..........

..........

..........

0: Wait for relay ports initialization...

0: relay 172.21.0.4 initialization...

0: relay 172.21.0.4 initialization done

0: relay ::1 initialization...

0: relay ::1 initialization done

0: Relay ports initialization done

0: IO method (general relay thread): epoll (with changelist)

0: turn server id=1 created

0: IO method (general relay thread): epoll (with changelist)

0: turn server id=0 created

0: Total General servers: 2

0: IO method (admin thread): epoll (with changelist)

0: IO method (auth thread): epoll (with changelist)

0: IO method (auth thread): epoll (with changelist)

0: SQLite DB connection success: /var/lib/turn/turndb

测试

打开测试网址:

https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

325ce40ccd8c64bff6f00f463d3f812b.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值