美文网首页
mac下安装turn服务器coturn

mac下安装turn服务器coturn

作者: 云上听风 | 来源:发表于2018-04-08 00:52 被阅读0次

    安装


    1. https://github.com/coturn/coturn下载代码
      直接./config 会发现找不到libssl-dev,其实mac系统里已经内置openssl了,但是应该不是dev版本。为了不跟系统的openssl冲突,选择自己安装openssl到指定目录。
    2. git clone https://github.com/openssl/openssl.git
    3. 进入openssl目录执行./config --prefix=指定目录
      指定目录必须为物理路径
      然后make && make install
    4. 安装coturn
      进入coturn目录
      ./configure --prefix=指定目录
      指定目录为上面安装openssl时把指定的目录
      make && make install
    5. 运行coturn
      指定目录/bin/turnserver

    使用


    配置文件
    打开安装目录/share/examples/turnserver/etc/turnserver.conf,里面的选项都有清楚的注释,很简单的英文,挺容易看懂。

    相关文章

      网友评论

          本文标题:mac下安装turn服务器coturn

          本文链接:https://www.haomeiwen.com/subject/yeguhftx.html