在使用Chrome62.0.3202.89在CoTurn 10.12.6上使用滴流ICE测试我的眩晕转服务器( MacBook )时,我没有任何候选人:
https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
通过以下方式:
stun:<ip-adres>:3478
turn:<ip-adres>:3478 [username:test] 在数字海洋上,我创建了一个液滴Ubuntu16.04.3 x64,并安装了CoTurn版本4.5.0.3,执行:
sudo apt-get update
sudo apt-get install coturn默认情况下,防火墙是不活动的。
接下来,我编辑了sudo vi /etc/turnserver.conf并给出了以下选项:
fingerprint
lt-cred-mech
user=username:test
realm=<ip-adres>
listening-ip=<ip-adres>
relay-ip=<ip-adres>
external-ip=<ip-adres>接下来,我编辑sudo vi /etc/default/coturn并取消对选项的注释:
TURNSERVER_ENABLED=1然后启动Co转折守护进程:
sudo systemctl start coturn
sudo systemctl status coturn这给出了输出:
● coturn.service - LSB: coturn TURN Server
Loaded: loaded (/etc/init.d/coturn; bad; vendor preset: enabled)
Active: active (exited) since Sat 2017-11-11 20:27:10 UTC; 52s ago
Docs: man:systemd-sysv-generator(8)
Process: 1386 ExecStart=/etc/init.d/coturn start (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 0B
CPU: 0
Nov 11 20:27:10 coturn systemd[1]: Starting LSB: coturn TURN Server...
Nov 11 20:27:10 coturn coturn[1386]: * coturn disabled in /etc/default/coturn turnserver
Nov 11 20:27:10 coturn coturn[1386]: ...done.
Nov 11 20:27:10 coturn coturn[1386]: * See /etc/default/coturn for instructions on enabling turnserver
Nov 11 20:27:10 coturn coturn[1386]: ...done.
Nov 11 20:27:10 coturn systemd[1]: Started LSB: coturn TURN Server.
Nov 11 20:27:53 coturn systemd[1]: Started LSB: coturn TURN Server.请帮帮我,这里还需要什么才能让它发挥作用?
发布于 2017-11-09 15:04:06
开始不起作用:
sudo systemctl start coturn这看起来像一个错误。
要修复此bug:
sudo systemctl edit --full coturn删除所有内容并粘贴如下:
[Unit]
Description=coturn
Documentation=man:coturn(1) man:turnadmin(1) man:turnserver(1)
After=syslog.target network.target
[Service]
Type=forking
User=turnserver
Group=turnserver
RuntimeDirectory=turnserver
RuntimeDirectoryMode=0750
EnvironmentFile=/etc/default/coturn
PIDFile=/run/turnserver/turnserver.pid
ExecStart=/usr/bin/turnserver --daemon --pidfile /run/turnserver/turnserver.pid --syslog -c /etc/turnserver.conf $EXTRA_OPTIONS
Restart=on-abort
LimitCORE=infinity
LimitNOFILE=1000000
LimitNPROC=60000
LimitRTPRIO=infinity
LimitRTTIME=7000000
CPUSchedulingPolicy=other
UMask=0007
[Install]
WantedBy=multi-user.target在修改了单元文件之后,我重新加载了systemd进程本身,以获取我的更改:
sudo systemctl daemon-reload现在开始实际工程:
sudo systemctl start coturn要使它在重新启动时自动重新启动:
sudo systemctl enable coturn发布于 2020-04-16 15:52:01
我也有同样的问题,但只要简单地做一个systemctl重新启动转换,它就会开始为我工作。在此之前,只执行systemctl启动或停止报告的成功,但实际上没有启动进程。
https://stackoverflow.com/questions/47189606
复制相似问题