centos 安装 janus

本文详细介绍了如何通过yum和git在Linux上安装必要的依赖,包括libmicrohttpd、libsrtp、libwebsockets等,并指导了Janus WebRTC Server的完整配置过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考 :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
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值