6

我已经安装了开源 TURN 服务器(rfc5766-turn-server),我使用以下命令运行它 sudo turnserver -L my.domain.in -a -b /usr/local/etc/turnuserdb.conf -f -r domain.in

这是我在终端中得到的输出,

RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Citrix-3.1.5.0 'Arch Lector'
0:

==== Show them the instruments, Practical Frost: ====

0: TLS supported
0: DTLS supported
0: Redis is not supported
0: PostgreSQL is not supported
0: MySQL is not supported
0: OpenSSL version: fresh enough
0: TURN Network Engine version: 2.5

=====================================================

0: Config file found: /usr/local/etc/turnserver.conf
0: ERROR: Cannot add a listener address: qeee.rtbi.in
0: Config file found: /usr/local/etc/turnserver.conf
0:
CONFIG: --no-udp-relay: UDP relay endpoints are not allowed.
0: ===========Discovering listener addresses: =========
0: Listener address to use: 127.0.0.1
0: Listener address to use: 10.7.3.129
0: Listener address to use: 203.134.253.129
0: Listener address to use: 10.0.0.1
0: Listener address to use: ::1
0: =====================================================
0: ===========Discovering relay addresses: =============
0: Relay address to use: 10.7.3.129
0: Relay address to use: 10.0.0.1
0: =====================================================
0: pid file created: /var/run/turnserver.pid
0: IO method (main listener thread): epoll
0: IO method (general relay thread): epoll
0: IO method (general relay thread): epoll
0: IPv4. TCP listener opened on : 127.0.0.1:49500
0: turn server id=2 created
0: IPv4. TCP listener opened on : 127.0.0.1:49501
0: IO method (general relay thread): epoll
0: IPv4. TCP listener opened on : 10.7.3.129:49500
0: turn server id=0 created
0: IPv4. TCP listener opened on : 10.7.3.129:49501
0: turn server id=3 created
0: IPv4. TCP listener opened on : 203.134.253.129:49500
0: IPv4. TCP listener opened on : 203.134.253.129:49501
0: IPv4. TCP listener opened on : 10.0.0.1:49500
0: IPv4. TCP listener opened on : 10.0.0.1:49501
0: IPv6. TCP listener opened on : ::1:49500
0: IPv6. TCP listener opened on : ::1:49501
0: IO method (auth thread): epoll
0: IO method (general relay thread): epoll
0: IO method (cli thread): epoll
0: turn server id=1 created
0: IPv4. CLI listener opened on : 127.0.0.1:5766`

当客户端连接或使用此 TURN 服务器时,我会在终端或其他任何地方获得任何日志吗?

4

2 回答 2

4

这也是一个非常古老的问题,我认为它仍然没有正确回答!下面确实有日志文件,var/log/但它们不是很有帮助。

CoTurn 将日志记录到系统日志!所以你需要运行

cat /var/log/syslog | grep turnserver

看看发生了什么。

于 2021-05-21T14:21:54.360 回答
3

日志的默认路径似乎是:

/var/log/turn_*.log
于 2014-10-02T02:23:08.963 回答