一、创建linux服务器

        linux服务以乌班图为例


二、给服务配置域名

        对服务器域名进行解析设置,例如:coturn.xxxx.com


三、安装coturn
        登录linux服务器:ssh root@服务器IP


        更新APT:apt-get update
        安装命令:apt install coturn


        ynm命令:yum install coturn

        查看是否安装成功:which turnserver


        查找配置文件命令:find / -name turnserver.conf
        修改所有找到的配置文件

四、配置参数
        端口
        listening-port=3478

        公网IP
        external-ip=116.204.65.167

        账号:
        user=账号:密码

        域名(必须设置域名)
        realm=coturn.xxxx.com

五、启动
        命令:turnserver --log-file stdout

六、测试
        https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/



 

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐