Linux中搭建coturn服务器的过程
1、下载coturn源码
git clone https://github.com/coturn/coturn.git
2、进入到coturn路径下,执行一下命令。
./configure
出现以下错误:
问题1:ERROR: OpenSSL Crypto development libraries are not installed properly in required location.
解决办法:sudo apt-get install libssl-dev 执行此命令安装libssl
问题2:Libevent2 development libraries are not installed properly in required location.
解决办法:sudo apt-get install libssl-dev libevent-dev
出现以下界面说明./configure执行成功。
3、执行make,进行编译。出现以下界面则编译成功。
4、执行make install 安装。出现以下界面则安装成功。
5、服务器配置
#与前ifconfig查到的网卡名称一致(如果无法运行ifconfig,可以在windows的cmd窗口中使用ipconfig,如果只有一块网卡,可以默认使用如下值) relay-device=eth0 #内网IP(ipconfig查到的IP地址) listening-ip=192.168.1.188 #公网IP(局域网可以使用与上面相同的ip地址) external-ip=113.119.27.xx #第1步创建的用户名密码,创建IceServer时用 user=your_username:your_password #一般与turnadmin创建用户时指定的realm一致 realm=xxx.com #端口号 listening-port=3478 #不开启会报CONFIG ERROR: Empty cli-password, and so telnet cli interface is disabled! Please set a non empty cli-password!错误 cli-password=qwerty cert=/etc/turn_server_cert.pem pkey=/etc/turn_server_pkey.pem
6、部署STURN服务
turnserver -v -r xxx.xxx.xxx.xxx(公网ip):3478 -a -o -c turnserver.conf
7、查看是否启动
sudo lsof -i:3478
8、关闭STURN服务
kill -9 <pid>
9、测试
Trickle ICE (webrtc.github.io)
参考链接:https://blog.csdn.net/lepaitianshi/article/details/123778506
到此这篇关于Linux中搭建coturn服务器的文章就介绍到这了,更多相关Linux 搭建coturn服务器内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
相关文章
sersync2 完全安装配置说明(三) 插件基本配置和使用
sersync2 完全安装配置说明(三) 插件基本配置和使用,需要的朋友可以参考下。2011-11-11Ubuntu Server 18.04.5 LTS服务器版安装配置图解教程
Ubuntu分为桌面版(desktop)和服务器版(Server),下面为大家介绍服务器版本Ubuntu Server 18.04.5 LTS的详细安装过程,需要的朋友可以参考下2021-01-01【专家教程】xmrig挖矿病毒清除攻略,保护你的服务器免受侵害!
面对日益猖獗的XMRig挖矿病毒,是时候采取行动了!这份攻略将带你一步步清除这个隐蔽的威胁,让你的设备再次安全起来,快来看看我们的秘诀,让病毒无处遁形!2024-02-02Apache2.2.16+PHP5.3.3+MySQL5.1.49的配置方法
轻松配置PHP5.3.3+Apache2.2.16+MySQL5.1.49,下面是有详细的步骤说明。2010-09-09Linux下的 mariadb 使用 root 用户启动方式(推荐)
这篇文章主要介绍了Linux下的 mariadb 使用 root 用户启动方式,本文内容虽然简单,但是给大家介绍的非常到位,通过实例文字说明,需要的朋友可以参考下2019-11-11
最新评论