■ step1
download source
1 | wget https://coturn.net/turnserver/v4.5.0.8/turnserver-4.5.0.8.tar.gz |
■ step2
install libs
1 | sudo yum update |
■ step3
install coturn
1 | ./configure |
config
1 | relay-ip=127.0.0.1 |
■ step4
start server
1 | sudo cp /usr/local/etc/turnserver.conf.default /usr/local/etc/turnserver.conf |
常见问题
- Cannot create pid file: /var/run/turnserver.pid: Permission denied
1 | whereis turnserver |
- Cannot bind local socket to addr: Address already in use
1 | # turnserve already started. |
- security input port setting
TYPE | RANGE |
---|---|
TCP | 3478 |
UDP | 3478 |
UDP | 49152-65535 |
- how to test