coturn 编译安装on ubuntu

前端之家收集整理的这篇文章主要介绍了coturn 编译安装on ubuntu前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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 -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

原文链接:https://www.f2er.com/ubuntu/350165.html

猜你在找的Ubuntu相关文章