Xaq*_*ron 2 sqlite software-installation
我正在根据此处的说明在 Ubuntu Server 16.04.1 上安装 COTURN 。所有步骤都做得很好,但在尝试运行turnserver
时发生此错误:
Error retrieving SQLite DB information: file is encrypted or is not a database
Run Code Online (Sandbox Code Playgroud)
我在谷歌上搜索了上述错误,主要发生在SQLite
. 但是我完全按照安装说明完成了步骤,并且不知道如何解决问题。
如果有人遇到同样的问题:
1)安装SQLite3:
>> sudo apt-get update
>> sudo apt-get install sqlite3 libsqlite3-dev
Run Code Online (Sandbox Code Playgroud)
2) 在安装文档中定义数据库文件时出错 etc/turnserver.conf
:
userdb=/etc/turnuserdb.conf
Run Code Online (Sandbox Code Playgroud)
应改为:
userdb=/var/lib/turn/turndb
Run Code Online (Sandbox Code Playgroud)
PS:
以下是turnuserdb.conf
您需要的重要部分:
# you can listen ports 80 and 443 instead of 3478/5349
listening-port=3478
alt-listening-port=0
tls-listening-port=5349
alt-tls-listening-port=0
listening-ip=YourPublicIPv4
relay-ip=YourPublicIPv4
external-ip=YourPublicIPv4
# realm=yourdomain.com
# server-name=yourdomain.com
# lt-cred-mech
# userdb=/etc/turnuserdb.conf
oauth
user=youruser:yourpassword
# use real-valid certificate/privatekey files
# cert=/etc/ssl/certificate.pem
# pkey=/etc/ssl/private.key
no-stdout-log
Run Code Online (Sandbox Code Playgroud)
考虑使用您的YourPublicIPv4
(xxxx) 和youruser:yourpassword
.
归档时间: |
|
查看次数: |
4114 次 |
最近记录: |