Centos安装janus

Centos安装janus

centos版本:

[root@localhost passion]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 

安装Centos时候最好选择带界面的,否则网络等不太方便配置。
注:
这里最好先把yum的源换了,建议换163的源(阿里的源gengetopt就找不到)

	换好后执行:
	yum clean
	yum makecache
	yum -y update

下载janus代码
git clone https://github.com/meetecho/janus-gateway.git
按照Readme.md提示说明编译:

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
wget https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz
tar xfv v2.0.0.tar.gz
cd libsrtp-2.0.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install

安装libnice

git clone https://gitlab.freedesktop.org/libnice/libnice
cd libnice
./autogen.sh
./configure --prefix=/usr
make && sudo make install

编译janus

sh autogen.sh 
./configure --prefix=/opt/janus --disable-rabbitmq --disable-docs
make
make install
make configs

安装nginx

yum install nginx

修改配置
1、/opt/janus/etc/janus/janus.transport.http.jcfg 里面的 https 改成 true
2、nginx的证书使用janus安装目录下的
vim /etc/nginx/conf.d/default.conf

你可能感兴趣的:(Centos安装janus)