Ubuntu 14.04 coturn 安装 与 配置

A. 安装依赖库

apt-get update 
apt-get install libssl-dev libevent-dev libpq-dev mysql-client libmysqlclient-dev libhiredis-dev make -y
apt-get install gdebi-core -y
apt-get install sqlite libsqlite3-dev -y

B. 下载源码并编译安装

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

C. 配置

turnadmin -A -u tan -r webrtcTest -p tan
turnadmin -a -u tan -r webrtcTest -p tan
turnadmin -k -u tan -r webrtcTest -p tan --> 0x8d3d80bd4f23099d86784ba7fa7ddd9b
openssl req -x509 -newkey rsa:2048 -keyout /etc/turn_server_pkey.pem -out /etc/turn_server_cert.pem -days 99999 -nodes

vi /usr/local/etc/turnserver.conf

-----------------------------------------------------------
listening-device=eth0
relay-device=eth0
listening-port=3478
listening-ip=149.202.X.X
listening-ip=149.202.X.X2
tls-listening-port=5349
lt-cred-mech
min-port=59000
max-port=65000
realm=webrtcTest
no-loopback-peers
no-multicast-peers
mobility
no-cli
cert=/etc/turn_server_cert.pem
pkey=/etc/turn_server_pkey.pem
fingerprint
stale-nonce=600

-----------------------------------------------------------

D. 运行
turnserver

你可能感兴趣的:(Ubuntu 14.04 coturn 安装 与 配置)