Linux中搭建coturn服務(wù)器的過程
1、下載coturn源碼
git clone https://github.com/coturn/coturn.git
2、進(jìn)入到coturn路徑下,執(zhí)行一下命令。
./configure
出現(xiàn)以下錯(cuò)誤:
問題1:ERROR: OpenSSL Crypto development libraries are not installed properly in required location.
解決辦法:sudo apt-get install libssl-dev 執(zhí)行此命令安裝libssl
問題2:Libevent2 development libraries are not installed properly in required location.
解決辦法:sudo apt-get install libssl-dev libevent-dev
出現(xiàn)以下界面說明./configure執(zhí)行成功。
3、執(zhí)行make,進(jìn)行編譯。出現(xiàn)以下界面則編譯成功。
4、執(zhí)行make install 安裝。出現(xiàn)以下界面則安裝成功。
5、服務(wù)器配置
#與前ifconfig查到的網(wǎng)卡名稱一致(如果無法運(yùn)行ifconfig,可以在windows的cmd窗口中使用ipconfig,如果只有一塊網(wǎng)卡,可以默認(rèn)使用如下值) relay-device=eth0 #內(nèi)網(wǎng)IP(ipconfig查到的IP地址) listening-ip=192.168.1.188 #公網(wǎng)IP(局域網(wǎng)可以使用與上面相同的ip地址) external-ip=113.119.27.xx #第1步創(chuàng)建的用戶名密碼,創(chuàng)建IceServer時(shí)用 user=your_username:your_password #一般與turnadmin創(chuàng)建用戶時(shí)指定的realm一致 realm=xxx.com #端口號(hào) listening-port=3478 #不開啟會(huì)報(bào)CONFIG ERROR: Empty cli-password, and so telnet cli interface is disabled! Please set a non empty cli-password!錯(cuò)誤 cli-password=qwerty cert=/etc/turn_server_cert.pem pkey=/etc/turn_server_pkey.pem
6、部署STURN服務(wù)
turnserver -v -r xxx.xxx.xxx.xxx(公網(wǎng)ip):3478 -a -o -c turnserver.conf
7、查看是否啟動(dòng)
sudo lsof -i:3478
8、關(guān)閉STURN服務(wù)
kill -9 <pid>
9、測(cè)試
Trickle ICE (webrtc.github.io)
參考鏈接:https://blog.csdn.net/lepaitianshi/article/details/123778506
到此這篇關(guān)于Linux中搭建coturn服務(wù)器的文章就介紹到這了,更多相關(guān)Linux 搭建coturn服務(wù)器內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
web服務(wù)器集群(多臺(tái)web服務(wù)器)session同步、共享的3種解決方法
這篇文章主要介紹了web服務(wù)器集群(多臺(tái)web服務(wù)器)session同步、共享的3種解決方法,需要的朋友可以參考下2014-04-04Linux中進(jìn)程在后臺(tái)可靠運(yùn)行的方法總結(jié)
本篇文章主要給大家介紹了Linux中進(jìn)程在后臺(tái)可靠運(yùn)行的方法以及示例代碼分析,一起學(xué)習(xí)參考下吧。2017-12-12

Linux系統(tǒng)下的重啟,關(guān)機(jī)命令以及reboot掛死問題解決方案

阿里云服務(wù)器CentOS服務(wù)器初始化設(shè)置步驟

CentOS7 mini的安裝和靜態(tài)ip設(shè)置教程