欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Linux中搭建coturn服務器的過程

 更新時間:2023年11月03日 08:58:12   作者:山中毒蘑菇  
這篇文章主要介紹了Linux中搭建coturn服務器,首先下載coturn源碼,進入到coturn路徑下執(zhí)行相應命令,本文給大家介紹的非常詳細,需要的朋友可以參考下

1、下載coturn源碼

git clone https://github.com/coturn/coturn.git

2、進入到coturn路徑下,執(zhí)行一下命令。

./configure

出現(xiàn)以下錯誤:

問題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,進行編譯。出現(xiàn)以下界面則編譯成功。

4、執(zhí)行make install 安裝。出現(xiàn)以下界面則安裝成功。

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步創(chuàng)建的用戶名密碼,創(chuàng)建IceServer時用
user=your_username:your_password
#一般與turnadmin創(chuàng)建用戶時指定的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服務器內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!

相關文章

最新評論