Bigbluebutton服务执行过程及相关配置文件

BigBlueButton服务列表

BigBlueButton由许多开源的服务组成,看似很麻烦,实际上拆分开每一个服务就很简单了,组件化平台化。
究竟BBB都用到了哪些开源服务?
我们来列举一下,名称均带有对应官网链接。
1、Ubuntu乌班图操作系统,友好的用户交互界面;
2、Flex SDK,高效构建Web应用程序,基于所有浏览器的开源框架,AS3编写客户端软件的SDK;
3、Ghostscript文档转换;
4、Grails开源Web框架;
5、ActiveMQ(官网有介绍,但未发现使用位置);
6、Image Magick,图像设计处理工具;
7、MySQL,开源数据库;
8、NGINX,"engine x"提供HTTP服务;
9、Red5,Java编写的Flash服务,类比FMS;
10、SWF Tools,阅读swf文件工具;
11、Tomcat,不知它妄为程序猿;
12、Open Office,文字处理,表格演示,图形,数据库的开源办公软件;
13、FreeSwitch,语音处理交换平台;
14、Redis,内存数据库;
15、popcorn.js,h5多媒体框架。

BigBlueButton服务主要目录结构

1. nginx的配置文件在/etc/nginx/sites-enabled/bigbluebutton

2. 网站目录一般在/var/www/bigbluebutton-default

3. 网站客户端的配置目录一般在/var/www/bigbluebutton/client下,其中的client/conf/config.xml有各个模块的配置

4. 网站日志目录一般在/var/log/nginx/bigbluebutton.access.log和/var/log/nginx/error.log

5. Red5(java的流媒体开源)配置文件在/usr/share/red5/中

6. tomcat配置文件在/var/lib/tomcat6/webapps/bigbluebutton

7. FreeSWITCH(电话软交换机)配置文件在/opt/freeswitch/conf/vars.xml

8. 记录和回放目录/usr/local/bigbluebutton/

9. app的一些中间文件存储在/var/bigbluebutton

10. video记录存储在/usr/share/red5/webapps/video/streams/

11. freeSWITCH记录存储在/var/freeswitch/meetings/

BigBlueButton执行过程和原理

1. bbb服务器nginx默认监听80端口

2. /etc/nginx/nginx.conf会包含/etc/nginx/sites-enabled/*以及/etc/bigbluebutton/nginx/*.conf的配置,通过nginx进行反向代理。

3. /etc/nginx/sites-enabled/bigbluebutton会链接到/etc/nginx/sites-available/bigbluebutton配置文件

4. /etc/nginx/sites-available/bigbluebutton配置了关于bbb的server配置,其中默认“/”会直接访问/var/www/bigbluebutton-default网站目录;并且包含了/etc/bigbluebutton/nginx/*.nginx配置

5. 符合通配的第一个配置文件/etc/bigbluebutton/nginx/client.nginx会链接到/etc/bigbluebutton/nginx/client,指明了"/client"会直接访问/var/www/bigbluebutton

6. 如果是开发client则/etc/bigbluebutton/nginx/client.nginx会链接到/etc/bigbluebutton/nginx/client_dev,它会指明"/client"会直接访问/home/firstuser/dev/bigbluebutton/bigbluebutton-client

7. 符合通配的第二个配置文件/etc/bigbluebutton/nginx/web.nginx会链接到/etc/bigbluebutton/nginx/web,指明了"/bigbluebutton"会访问http://127.0.0.1:8080

8. 8080端口被tomcat监听

9. /var/lib/tomcat6/conf链接到/etc/tomcat6/,/etc/tomcat6/server.xml指明了port="8080",appBase="webapps"也就是app的目录

10. 在/var/lib/tomcat6/webapps中部署了BigBlueButton的webapp,里面有bigbluebutton.war

其他功能:桌面分享、webrtc、视频等服务同理,通过nginx反向代理进行访问。参考2.中的配置文件。

BBB服务器配置文件和日志文件:tomcat ed5-webapps    sipigbluebutton
其中配置使用方法及说明详见文件内容,均带有说明;
bbb:文件和对应的目录位置。
    版本:/etc/bigbluebutton/bigbluebutton-release
    conf:/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties
    flash:/var/www/bigbluebutton/
    conf-all:/var/www/bigbluebutton/client/conf/config.xml
    log-red5:/usr/share/red5/log/bigbluebutton.log
    log:/var/log/bigbluebutton/
    access/events/messages日志:/usr/share/red5/log/
nginx:
    conf: /etc/nginx/sites-available/bigbluebutton
    使用: /etc/nginx/sites-available/default
    bbb相关: /etc/bigbluebutton/nginx/
    access: /var/log/nginx/access.log
    bbb日志: /var/log/nginx/bigbluebutton.access.log
    错误日志: /var/log/nginx/error.log
red5:
    conf:/usr/share/red5/conf/red5-core.xml
    bbb模块:/usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties  备注:需重点关注
    sip模块:/usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.sip.properties 包含对freeswitch、redis的配置
    日志:存放在share目录下,而不是log目录
    共享桌面日志: /usr/share/red5/log/deskshare.log
    sip日志:/usr/share/red5/log/sip.log
    video日志:/usr/share/red5/log/video.log 非常有用!
    red5.log:/usr/share/red5/log/red5.log
    error.log:/usr/share/red5/log/error.log
    deskshare-slf.log: /usr/share/red5/log/deskshare-slf.log
tomcat7:
    conf:/etc/tomcat7/server.xml
    log:/var/log/tomcat7/
redis:
    redis.confsentinel.conf:/etc/redis/
    redis-server:/etc/default/redis-server
    bbb-redis:/usr/share/red5/webapps/bigbluebutton/WEB-INF/bbb-redis-xxx.xml(messingpool ecorder)
    bbb-redis:/usr/share/red5/webapps/sip/WEB-INF/bbb-redis-xxx.xml(messingpool)
    bbb-redis:/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/spring/bbb-redis-xxx.xml(messingpool)
    properties:/usr/share/red5/webapps/bigbluebutton/WEB-INF/classes/redis.properties
    log:/var/log/redis/redis-server.log
freeswitch:
    vars.xmlconference.conf.xmlpublic.xml:/opt/freeswitch/conf/vars.xml
Asterisk(sip server):pythonperl
    asterisk.xml:/usr/share/kde4/apps/katepart/syntax/asterisk.xml
    sip.nginx:/etc/bigbluebutton/nginx/sip.nginx
    sip:/usr/share/red5/webapps/sip/
    sip.js:/var/www/bigbluebutton/client/lib
    bbb_webrtc_bridge_sip.js:/var/www/bigbluebutton/client/lib
icecast:
    red5存在配置,目前未发现有使用
ffmpeg:
    location:/usr/local/share/ffmpeg/
    doc:/usr/local/share/doc/ffmpeg/
    src:/usr/local/src/ffmpeg-xxx/  

启用/禁用webrt相关配置文件:


1) /opt/freeswitch/conf/vars.xml

2) /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

3) /var/www/bigbluebutton/client/conf/config.xml

4) /opt/freeswitch/conf/sip_profiles/external.xml

5)  /etc/bigbluebutton/nginx/sip.nginx

更换主机或IP,包括端口:

1) /var/ww/bigbluebutton/client/conf/config.xml

2)  /etc/nginx/sites-available/bigbluebutton

3)  /var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties

4)  /usr/local/bigbluebutton/core/scripts/bigbluebutton.yml

5)  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp

6)  /var/www/bigbluebutton/check/conf/config.xml

其中5),6)若不安装bbb-demo和bbb-check,是不存在的。

注:更换主机或IP,可通过命令:sudo bbb-conf --setip <hostname or ip >完成。

但若更换端口,请手动更改。

原文地址:https://www.cnblogs.com/toughlife/p/5513933.html