CentOS 6.5 coturn 安装

A. 安装 平台依赖库

yum install openssl-devel
yum install libevent2
yum install libevent-devel
yum install sqlite
yum install sqlite-devel
yum install postgresql-devel
yum install postgresql-server
yum install mysql-devel
yum install mysql-server
yum install hiredis
yum install hiredis-devel

测试可以不装数据库,正式运行需要。
从 sqlite, postgresql, mysql, redis 任选其一。

B. hiredis 手动安装

git clone https://github.com/redis/hiredis.git
make
make install

C. coturn 手动安装

git clone https://github.com/coturn/coturn 
cd coturn 
./configure 
make 
make install

D. Redis 安装,配置与启动

wget http://download.redis.io/redis-stable.tar.gz
tar –zxvf redis-stable.tar.gz
cd redis-stable
make
make install
./install_server.sh

vim /etc/redis/6379.conf


timeout 0
tcp-keepalive 60


redis-server &

E. 数据库配置
redis-cli
SELECT 2

你可能感兴趣的:(CentOS 6.5 coturn 安装)