名字
yum install -y make gcc cc gcc-c++ wget
yum install -y openssl-devel libevent libevent-devel mysql-devel mysql-server
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 ..
具体版面可以到 http://turnserver.open-sys.org/downloads/ 查看,截止本博客,最新版本是4.5.1.1
wget http://turnserver.open-sys.org/downloads/v4.5.1.1/turnserver-4.5.1.1.tar.gz
tar -zxvf turnserver-4.5.1.1.tar.gz
cd turnserver-4.5.1.1 && ./configure
sudo make && sudo make install
安装成功会出现类似下面的内容
...省略
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
==================================================================
cp /usr/local/etc/turnserver.conf.default /etc/turnserver.conf
# vi玩的熟的,就用vi,我喜欢拷贝到本地修改,然后再上传
vi /etc/turnserver.conf
# 监听端口,不配置的话,默认是3478
listening-port=3478
# 内网地址
listening-ip=172.18.118.115
# 外网地址
external-ip=112.74.183.177
# 设置用户名及密码,可设置多个
user=tan:123
user=tan2:123
no-cli
cli-password=$5$79a316b350311570$81df9cfb9af7f5e5a76eada31e7097b663a0670f99a3c07ded3f1c8e59c5658a
turnserver -v -r 外网地址:3478 -a -o -c /etc/turnserver.conf
ps -ef | grep turnserver
kill -9 xxxx
https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
https://blog.csdn.net/qq_32435729/article/details/78729093
https://www.cnblogs.com/idignew/p/7440048.html
https://blog.csdn.net/hello123yy/article/details/84976086
https://blog.csdn.net/haeasringnar/article/details/94607464
最新评论 我的评论
t-io为本站提供HTTP、WebSocket、Socket、页面渲染与压缩等服务,nginx为本站提供反向代理服务
© 2017-2023 钛特云 版权所有 | 浙ICP备17032976号 | 浙公网安备 33011802002129号