参考 :GitHub - meetecho/janus-gateway: Janus WebRTC Server
1、执行依赖:
yum install libmicrohttpd-devel jansson-devel
openssl-devel libsrtp-devel sofia-sip-devel glib2-devel
opus-devel libogg-devel libcurl-devel pkgconfig gengetopt
libconfig-devel libtool autoconf automake
安装libnice:
git clone https://github.com/libnice/libnice.git
meson --prefix=/usr build && ninja -C build && ninja -C build instal
安装libsrtp:
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xfv v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
安装 libwebsockets:
git clone https://github.com/warmcat/libwebsockets.git
cd libwebsockets
git branch -a 查看选择最新的稳定版本,目前的是remotes/origin/v4.1-stable
git checkout v4.1-stable 切换到最新稳定版本
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" ..
make && sudo make install
安装rabbitmq-c:
git clone https://github.com/alanxz/rabbitmq-c
cd rabbitmq-c
git submodule init
git submodule update
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && sudo make install
安装libevent:
sudo yum install libevent libevent-devel openssl openssl-libs -y
wget https://sourceforge.net/projects/levent/files/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz/download
mv download libevent-2.0.22-stable.tar.gz
tar zxvf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure
make
sudo make install
安装turnserver:
wget http://coturn.net/turnserver/v4.5.0.7/turnserver-4.5.0.7.tar.gz
tar xfz turnserver-4.5.0.7.tar.gz
cd turnserver-4.5.0.7
./configure
make
sudo make install
2.janus 安装
git clone https://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/opt/janus
make
make install
make configs
./configure --prefix=/usr --enable-openssl --libdir=/usr/lib64
janus 的配置参考我的另外一篇博客:
unbutu 18.04 下 Janus 安装_abc1231987的专栏-CSDN博客
centos7安装janus - 简书
CentOS搭建Janus服务_a499957739的博客-CSDN博客_centos 安装janus
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)