使用ssh工具,进入命令行,安装下面的就是可以配置turn-server(coturn)

转请注明出处。

1.安装centos必须的库文件

     yum install -y make gcc cc gcc-c++ wget
     yum install -y openssl-devel libevent libevent-devel mysql-devel mysql-server
 
2. 下载并安装 LibEvent modules
     wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
     tar zxvf libevent-2.0.21-stable.tar.gz
      cd libevent-2.0.21-stable && ./configure
sudo make && sudo make install && cd ..
 
3.下载并安装 TURN modules
另外具体版面可以到: http://turnserver.open-sys.org/downloads/ 查看
wget http://turnserver.open-sys.org/downloads/v4.4.5.2/turnserver-4.4.5.2.tar.gz
tar -zxvf turnserver-4.4.5.2.tar.gz
cd turnserver-4.4.5.2 && ./configure
sudo make && sudo make install
 
安装成功后出现:
==================================================================
1) If you system supports automatic start-up system daemon services,
the, to enable the turnserver as an automatically started system
service, you have to:
 
        a) Create and edit /etc/turnserver.conf or
        /usr/local/etc/turnserver.conf .
        Use /usr/local/etc/turnserver.conf.default as an example.
 
        b) For user accounts settings: set up SQLite or PostgreSQL or
        MySQL or MongoDB or Redis database for user accounts.
        Use /usr/local/share/turnserver/schema.sql as SQL database schema,
        or use /usr/local/share/turnserver/schema.userdb.redis as Redis
        database schema description and/or
        /usr/local/share/turnserver/schema.stats.redis
        as Redis status & statistics database schema description.
 
        If you are using SQLite, the default database location is in
        /var/db/turndb or in /usr/local/var/db/turndb or in /var/lib/turn/turndb.
 
        c) add whatever is necessary to enable start-up daemon for the
        /usr/local/bin/turnserver.
 
2) If you do not want the turnserver to be a system service,
   then you can start/stop it "manually", using the "turnserver"
   executable with appropriate options (see the documentation).
 
3) To create database schema, use schema in file
/usr/local/share/turnserver/schema.sql.
 
4) For additional information, run:
 
   $ man turnserver
   $ man turnadmin
   $ man turnutils
 
==================================================================
 
 
4.配置“turnserver.conf” file
cp /usr/local/etc/turnserver.conf.default   /etc/turnserver.conf
vi /etc/turnserver.conf
 
#监听端口可以不设置会默认的使用3478
listening-port=3478
#listening-ip,注意必须是你的内网IP地址如(如果你是阿里云的,就是私网地址):
listening-ip=172.xx.xx.xx
#relay-ip可以不设置,默认会使用你的外网ip地址作为转发包的中继地址,建议不设置,使用默认就可以:
#external-ip,注意必须使用你的外网IP地址如:
external-ip=xxx.xxx.xxx.xxx
#设置用户名及密码,这个是作为TURN服务器使用必须设置的,可以设置多个,我这里配置2个
user=user:simon
user=user:simon2
 
5.启动 turn server 
     turnserver -v -r  外网地址:3478 -a -o -c /etc/turnserver.conf
 
6.停止turn sever
ps -ef|grep turnserver
kill -9 xxxx
 
7.测试服务器地址:
 
配置成功后会出现
 

【原创】Centos配置turn服务器的更多相关文章

  1. centos 配置NFS服务器

    转载:http://boloveyo.blog.163.com/blog/static/203926187201232383956558/ 系统是CentOS5.6,假设NFS Server IP为1 ...

  2. [原创]CentOS下Radius服务器搭建

    一.   实现环境: 1.系统:CentOS  release  6.6 (Final) 2.需要软件包: 1) freeradius-2.1.12-6.e16.x86_64 freeradius-m ...

  3. centos配置NTP服务器

    时间服务器: NTP(Network Time Protocol,网络时间协议)是用来使用网络中的各个计算机时间同步的一种协议,NTP服务器就是利用NTP协议提供时间同步服务的. 一.环境准备: 1. ...

  4. CentOS配置SVN服务器

    系统环境:CentOS系统:CentOS 6.5 1.检查是否安装了低版本的SVN rpm -qa subversion 2.卸载旧版本SVN yum remove subversion 3.安装SV ...

  5. CentOS配置VSFTP服务器

    [1] 安装VSFTP [root@localhost ~]# yum -y install vsftpd [2] 配置vsftpd.conf文件 [root@localhost ~]# vi /et ...

  6. linux centos 配置 svn 服务器

    首先介绍一下吧,Subversion(SVN) 是一个开源的版本控制系統, 也就是说 Subversion 管理着随时间改变的数据. 这些数据放置在一个中央资料档案库 (repository) 中.  ...

  7. CentOS配置LDAP服务器

    环境:centos 5.8 安装: 1.yum安装oepnldap.openldap-servers.openldap-clients.openldap-devel [root@hao-linux ~ ...

  8. CentOS配置DHCP服务器

    知识储备 bootp (boot protocol) 早前用于无盘工作站,dhcp的前身 IP初次分配完成,以后固定mac和IP绑定关系 dhcp基础 获取IP步骤 step1: Client dhc ...

  9. centos配置vpn服务器

    1.配置epel软件源wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm2.安装PPTP服务端软件yu ...

随机推荐

  1. 《Java程序设计》第十一周学习总结

    20175334 <Java程序设计>第十一周学习总结 教材学习内容总结 第十三章 URL类 一个URL对象通常包含最基本的三部分信息:协议.地址.资源. URL对象调用 InputStr ...

  2. 经常犯的错误之递归写不全return

    在写递归函数的时候,只在最后一层写return,中间的过程没有return,导致结果的丢失. 举个例子 LL query(LL i, LL k) { if (sum[i] < k) { ; } ...

  3. sql server和eclipse连接代码

    新建java程序:必须添加sql server驱动程序(上篇博文中有详细过程) package asd; import java.sql.*; //创建数据库连接类 public class DBCo ...

  4. OpenCV之XML和YAML文件读写

    FileStorage类 该类有两个构造函数 FileStorage::FileStorage() FileStorage::FileStorage(const string& source, ...

  5. 抽象语法树 Abstract syntax tree

    什么是抽象语法树? 在计算机科学中,抽象语法和抽象语法树其实是源代码的抽象语法结构的树状表现形式 在线编辑器 我们常用的浏览器就是通过将js代码转化为抽象语法树来进行下一步的分析等其他操作.所以将js ...

  6. Python入门3 —— 基本数据类型

    一:为何变量值(记录的数据)要有类型呢? 1.既然可以记录事物的状态,为什么要分类型呢? 变量值是来记录事物状态的, 而事物的状态是多种多样的, 所以对应着就要应该用不同类型的值去记录这些状态. 二: ...

  7. dfs题型一

    代码: #include <iostream> #include <algorithm> #include <vector> using namespace std ...

  8. 关于BaiduPSC-Go的一些bug的更正

    首先说下操作步骤 下载是在GutHub,这个不赘述,网上很多资料 下载之后配置环境变量,在path的后面加上一个分号,然后加上你下载的目录,目录名最好为英文 然后通过命令行CMD工具,输入BaiduP ...

  9. MySQL表的操作01

    表在数据库中主要用来实现存储数据记录,其基本操作包括创建表.查看表.删除表和修改表. 表中的数据库对象包括: 1.列(COLUMNS):也称属性列,在具体创建表时,必须指定列的名字和它的数据类型. 2 ...

  10. Ad Hoc类问题

    __________________________________ Ad Hoc类问题的方法:(1)机理分析法.分析题目描述,推出算法. (2)统计分析法.追寻最终的数学模型. Problem 1: ...