Coturn服务器环境搭建

1.Linux环境准备

安装Ubuntu18.04

sudo apt-get update

sudo apt-get install build-essential

该命令将安装一堆新包,包括gccg ++make)linuxidc@linuxidc:~/www.linuxidc.com$ gcc --version

Ubuntu 18.04存储库中可用的默认GCC版本是7.4.0。   2.安装Openssl

2.安装zlib开发库

sudo apt-get install zlib1g-dev

安装Openssl

sudo apt-get install openssl

sudo apt-get install libssl-dev

3.下载并安装libevent-2.0

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

 make

 make install

4.下载编译安装coturn

git clone https://github.com/coturn/coturn

cd coturn

./configure

make

make install

5.查看安装是否成功

which turnserver

https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

 

 

你可能感兴趣的:(视频监控)