coturn 编译安装on ubuntu

1、安装依赖环境

apt-get install update


apt-get install gcc

apt-get install g++

apt-get install make


apt-get install libssl-dev

apt-getinstalllibevent-dev


apt-get install mysql-server -y

apt-get install mysql-client -y
apt-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

相关文章
相关标签/搜索