1、安装依赖环境
apt-get install update
apt-get install gcc
apt-get install g++
apt-get install make
apt-getinstalllibssl-dev
apt-getinstalllibevent-dev
apt-get install MysqL-server -y
apt-get install MysqL-client -yapt-get -y install libMysqLcppconn-dev libMysqLclient-dev libMysqL++-dev
先安装MysqL库,configre时才能发现MysqL,才能编译为支持MysqL
./configure
make
2、创建数据库
create database turnserverdb;
use turnserverdb;
source /home/coturn-master/turndb/schema.sql;
3、建立用户
./turnadmin -a -u sean -r xinyu -p 1234 -M "host=127.0.0.1 dbname=turnserverdb user=root password=12345 port=3306 connect_timeout=5 read_timeout=5"
/usr/local/etc/turnserver.conf.default 改为turnserver.conf,
开MysqL,取消注释:
MysqL-userdb="host=127.0.0.1 dbname=turnserverdb user=root password=yzddzd1800 port=3306 connect_timeout=2 read_timeout=2"
-o 后台运行
turnserver -o -a -f -v --mobility -m 10 --max-bps=100000 --min-port=32355 --max-port=65535 --user=ling:ling1234 --user=ling2:ling1234 -r demo
turnserver -a -f -v --mobility -m 10 --max-bps=100000 --min-port=32355 --max-port=65535 --user=ling:ling1234 --user=ling2:ling1234 -r xinyu
http://blog.csdn.net/tanyhuan/article/details/77265349
https://www.cnblogs.com/lingdhox/p/4209659.html