当前位置: 首页 > 工具软件 > restund > 使用案例 >

关于安装Turn服务器:coturn,TurnServer,Restund,reTurnServer

关浩壤
2023-12-01

关于安装Turn服务器:coturn,TurnServer,Restund,reTurnServer


1.Ubuntu下安装coturn:


apt-get install coturn,源码:http://turnserver.open-sys.org/downloads/

安装类似下面:

sudo -

# ignore if you already in admin mode

apt-get update && apt-get install libssl-dev libevent-dev libhiredis-dev make -y

# install the dependencies

wget -O turn.tar.gz http://turnserver.open-sys.org/downloads/v4.5.0.3/turnserver-4.5.0.3.tar.gz 

# Download the source tar

tar -zxvf turn.tar.gz

 # unzip

cd turnserver-*

./configure

make && make install

可以参考:https://gist.github.com/chathudan/2024fc8ab182d789205d


运行服务器:

sudo turnserver -a -o -v -n  --no-dtls --no-tls -u test:test -r "someRealm"

command description:

  • -a - Use long-term credentials mechanism
  • -o - Run server process as daemon
  • -v - 'Moderate' verbose mode.
  • -n - no configuration file
  • --no-dtls - Do not start DTLS listeners
  • --no-tls - Do not start TLS listeners
  • -u - user credentials to be used
  • -r - default realm to be used, need for TURN REST API

详细配置wiki.

现在你可以在你的应用程序中使用TurnServer:

var peerConnectionConfig = {
  iceServers: [{
    urls: YOUR_IP:3478,
    username: 'test',
    password: 'test'
  }]
}


2.【注:https://code.google.com/archive/p/coturn是从rfc5766进化过来的

[旧]Ubuntu下安装TURN Server (rfc5766-turn-server)


http://www.blogjava.net/linli/archive/2015/06/18/418935.html


3.TurnServer


官网:http://turnserver.sourceforge.net/

安装:http://turnserver.sourceforge.net/index.php?n=Doc.Install


4.Restund


官网:http://www.creytiv.com/restund.html

安装参照:http://nil.uniza.sk/sip/installing-and-configuring-restund-stunturn-server


5.reTurnServer


安装:http://rtcquickstart.org/guide/multi/turn-reTurnServer.html#idp63651520





 类似资料: