关于安装Turn服务器:coturn,TurnServer,Restund,reTurnServer
關(guān)于安裝Turn服務(wù)器:coturn,TurnServer,Restund,reTurnServer
1.Ubuntu下安裝coturn:
apt-get install coturn,源碼:http://turnserver.open-sys.org/downloads/
安裝類似下面:
sudo -i?
# 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
運(yùn)行服務(wù)器:
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
詳細(xì)配置wiki.
現(xiàn)在你可以在你的應(yīng)用程序中使用TurnServer:
var peerConnectionConfig = {iceServers: [{urls: YOUR_IP:3478,username: 'test',password: 'test'}] }2.【注:https://code.google.com/archive/p/coturn是從rfc5766進(jìn)化過(guò)來(lái)的】
[舊]Ubuntu下安裝TURN Server (rfc5766-turn-server) :
http://www.blogjava.net/linli/archive/2015/06/18/418935.html
3.TurnServer
官網(wǎng):http://turnserver.sourceforge.net/
安裝:http://turnserver.sourceforge.net/index.php?n=Doc.Install
4.Restund
官網(wǎng):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
總結(jié)
以上是生活随笔為你收集整理的关于安装Turn服务器:coturn,TurnServer,Restund,reTurnServer的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。