记录ubuntu 部署coturn服务 搭建Turn/Stun服务器

1.安装coturn

复制代码
sudo apt-get -y update
sudo apt-get install coturn
systemctl stop coturn

2.启用coturn,取消注释:TURNSERVER_ENABLED=1

目录:/etc/default/coturn

3.备份和创建配置文件

目录:/etc/turnserver.conf

添加以下配置:
复制代码
listening-port=3478
tls-listening-port=5349
fingerprint
lt-cred-mech
server-name=domain
realm=domain
total-quota=100
stale-nonce=600

min-port=49152
max-port=65535
verbose
log-file=/var/log/turn.log
syslog
lt-cred-mech
user=test:test
cli-password=test

proc-user=turnserver
proc-group=turnserver

4.开启coturn服务器

复制代码
systemctl start coturn

5.检查服务状态

复制代码
    systemctl status coturn

6.最后通过Trickle ICE测试是否部署成功

备注:服务器需开放3478的TCP/UDP的端口,40000-60000的UDP的端口

相关推荐
chlk12312 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑13 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件13 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号1 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash1 天前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI2 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
木心月转码ing3 天前
WSL+Cpp开发环境配置
linux
简离4 天前
前端调试实战:基于 chrome://webrtc-internals/ 高效排查WebRTC问题
前端·chrome·webrtc
崔小汤呀4 天前
最全的docker安装笔记,包含CentOS和Ubuntu
linux·后端