apt install build-essential apt install openssl libssl-dev make
wget https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz tar xf libevent-2.1.12-stable.tar.gz cd libevent-2.1.12-stable ./configure make && make install
root@ip-10-23-93-138:~/coturn-4.5.2# openssl version OpenSSL 1.0.1f 6 Jan 2014
出现这个问题可以先忽略他:
1 2 3
root@ip-10-23-93-138:~/coturn-4.5.2# turnadmin -a -u test -p test -r test 0: : SQLite connection was closed. 0: : log file opened: /var/log/turn_22804_2021-03-26.log
root@ip-10-23-93-138:~/coturn-4.5.2# turnserver 0: : WARNING: Cannot find config file: turnserver.conf. Default and command-line settings will be used. 0: : log file opened: /var/log/turn_22815_2021-03-26.log 0: : WARNING: Cannot find config file: turnserver.conf. Default and command-line settings will be used. 0: : WARNING: Cannot find config file: turnserver.conf. Default and command-line settings will be used. 0: : RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server Version Coturn-4.5.2 'dan Eider' 0: : Max number of open files/sockets allowed for this process: 4096 0: : Due to the open files/sockets limitation, max supported number of TURN Sessions possible is: 2000 (approximately) 0: :
==== Show him the instruments, Practical Frost: ====
0: : TLS supported 0: : DTLS supported 0: : DTLS 1.2 is not supported # 重点看这里 0: : TURN/STUN ALPN is not supported # 重点看这里 0: : Third-party authorization (oAuth) supported 0: : GCM (AEAD) supported 0: : OpenSSL compile-time version: OpenSSL 1.0.1f 6 Jan 2014 (0x1000106f) 0: : 0: : SQLite supported, default database location is /usr/local/var/db/turndb 0: : Redis is not supported 0: : PostgreSQL is not supported 0: : MySQL is not supported 0: : MongoDB is not supported 0: : 0: : Default Net Engine version: 3 (UDP thread per CPU core)
wget https://ftp.openssl.org/source/old/1.1.0/openssl-1.1.0l.tar.gz tar xf openssl-1.1.0l.tar.gz cd openssl-1.1.0l ./config && make && make install
我试了 openssl-1.1.0I.tar.gz 编译安装完成后,openssl version 报了错误如下:
1 2 3 4 5 6 7 8 9
root@ip-10-23-93-138:~/openssl-1.1.1k# openssl version openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
root@ip-10-23-93-138:~/coturn-4.5.2# turnserver -a -f -v -r test 0: : Config file found: /usr/local/etc/turnserver.conf 0: : log file opened: /var/log/turn_26454_2021-03-26.log 0: : Config file found: /usr/local/etc/turnserver.conf 0: : RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server Version Coturn-4.5.2 'dan Eider' 0: : Max number of open files/sockets allowed for this process: 4096 0: : Due to the open files/sockets limitation, max supported number of TURN Sessions possible is: 2000 (approximately) 0: :
==== Show him the instruments, Practical Frost: ====
0: : TLS supported 0: : DTLS supported 0: : DTLS 1.2 supported 0: : TURN/STUN ALPN supported 0: : Third-party authorization (oAuth) supported 0: : GCM (AEAD) supported 0: : OpenSSL compile-time version: OpenSSL 1.1.1k 25 Mar 2021 (0x101010bf) 0: : 0: : SQLite supported, default database location is /usr/local/var/db/turndb 0: : Redis is not supported 0: : PostgreSQL is not supported 0: : MySQL is not supported 0: : MongoDB is not supported 0: : 0: : Default Net Engine version: 3 (UDP thread per CPU core)