Windows下部署BigBlueButton

來源:互聯網
上載者:User

Tag:   BigblueButton , 視頻會議, WhiteBoard, deskShare,Red5

1.在red5下部署bigbluebutton,video,deskshare,sip等應用,其中bigbluebutton是必須的,並用red5的demo:echo_test測試其可用性,bigbluebutton在啟動中會串連asterisk或freeswitch,如果你需要配置VOIP則配置相應的xml檔案,並在red5-web.xml裡進行import

事先安裝好ant與gradle部署工具.

2.下載activemq,並啟動(運行win32/wrapper.exe),不需要配置

查看61616連接埠是否有tcp在監聽

3.下載nginx的windows版本,配置如下:nginx在此系統中的作用主要是url轉向,根據URL向5080或8080連接埠跳轉.

 

#user  nobody;worker_processes  1;#error_log  logs/error.log;#error_log  logs/error.log  notice;#error_log  logs/error.log  info;#pid        logs/nginx.pid;events {    worker_connections  1024;}http {    include       mime.types;    default_type  application/octet-stream;    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '    #                  '$status $body_bytes_sent "$http_referer" '    #                  '"$http_user_agent" "$http_x_forwarded_for"';    #access_log  logs/access.log  main;    sendfile        on;    #tcp_nopush     on;    #keepalive_timeout  0;    keepalive_timeout  65;    #gzip  on;    server {        listen       80;        server_name  localhost;        #charset koi8-r;        #access_log  logs/host.access.log  main;        #location / {         #   root   html;          #  index  index.html index.htm;        #}      location ~ (/open/|/close/|/idle/|/send/) {          proxy_pass         http://127.0.0.1:8088;          proxy_redirect     off;          proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;          client_max_body_size       10m;          client_body_buffer_size    128k;          proxy_connect_timeout      90;          proxy_send_timeout         90;          proxy_read_timeout         90;          proxy_buffering            off;      }        location /bigbluebutton {           proxy_pass         http://127.0.0.1:8080;           proxy_redirect     default;           proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;           client_max_body_size       10m;           client_body_buffer_size    128k;           proxy_connect_timeout      90;           proxy_send_timeout         90;           proxy_read_timeout         90;           proxy_buffer_size          4k;           proxy_buffers              4 32k;           proxy_busy_buffers_size    64k;           proxy_temp_file_write_size 64k;           include    fastcgi_params;       }        location / {          root   M:/BigBlueButton/nginx-1.0.5/nginx-1.0.5/html/bigbluebutton-default;          index  index.html index.htm;        }        location /client {                root   M:/BigBlueButton/nginx-1.0.5/nginx-1.0.5/html/bigbluebutton;                index  index.html index.htm;        }        location /deskshare {           proxy_pass         http://127.0.0.1:5080;           proxy_redirect     default;           proxy_set_header   X-Forwarded-For   $proxy_add_x_forwarded_for;           client_max_body_size       10m;           client_body_buffer_size    128k;           proxy_connect_timeout      90;           proxy_send_timeout         90;           proxy_read_timeout         90;           proxy_buffer_size          4k;           proxy_buffers              4 32k;           proxy_busy_buffers_size    64k;           proxy_temp_file_write_size 64k;           include    fastcgi_params;       }        #error_page  404              /404.html;        # redirect server error pages to the static page /50x.html        #        error_page   500 502 503 504  /50x.html;        location = /50x.html {            root   html;        }        # proxy the PHP scripts to Apache listening on 127.0.0.1:80        #        #location ~ \.php$ {        #    proxy_pass   http://127.0.0.1;        #}        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000        #        #location ~ \.php$ {        #    root           html;        #    fastcgi_pass   127.0.0.1:9000;        #    fastcgi_index  index.php;        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;        #    include        fastcgi_params;        #}        # deny access to .htaccess files, if Apache's document root        # concurs with nginx's one        #        #location ~ /\.ht {        #    deny  all;        #}    }    # another virtual host using mix of IP-, name-, and port-based configuration    #    #server {    #    listen       8000;    #    listen       somename:8080;    #    server_name  somename  alias  another.alias;    #    location / {    #        root   html;    #        index  index.html index.htm;    #    }    #}    # HTTPS server    #    #server {    #    listen       443;    #    server_name  localhost;    #    ssl                  on;    #    ssl_certificate      cert.pem;    #    ssl_certificate_key  cert.key;    #    ssl_session_timeout  5m;    #    ssl_protocols  SSLv2 SSLv3 TLSv1;    #    ssl_ciphers  HIGH:!aNULL:!MD5;    #    ssl_prefer_server_ciphers   on;    #    location / {    #        root   html;    #        index  index.html index.htm;    #    }    #}}

nginx中有兩個目錄:

1)bigbluebutton(下載www-bigbluebutton.tar.gz得到)

---client(檔案夾)

------

---index.html

其中conf下需要配置config.xml檔案,把ip改成伺服器IP(注意不能改成127.0.0.1)

2)bigbluebutton-default(下載www-bigbluebutton-default.tar.gz得到)

4.0安裝mysql,建立資料庫bigbluebutton_dev

4.1在tomcat目錄下安裝bigbluebutton-web,

重新命名為bigbluebutton

更改demo/bbb_api_conf.jsp中的ip為伺服器IP(注意不能改成127.0.0.1)

當串連nginx:localhost:80後輸入使用者名稱,將跳轉到tomcat:localhost:8080/bigbluebutton/demo/demo3.jsp頁,再跳轉到nginx:IP:80/client/…..swf

配置web-inf/class/bigbluebutton.properties檔案,注意裡面所有的路徑中不能有空格,我的配置如下:(最好下載pdftk.exe,也放到swftools路徑中)

#

# These are the default properites for BigBlueButton Web application

dataSource.url=jdbc:mysql://localhost/bigbluebutton_dev

dataSource.username=root

dataSource.password=jjjddd

dataSource.driverClassName =com.mysql.jdbc.Driver

#----------------------------------------------------

# Directory where BigBlueButton stores uploaded slides

presentationDir=i:/upload

#----------------------------------------------------

# Directory where SWFTOOLS (pdf2swf, jpeg2swf, png2swf) are located

swfToolsDir=i:/SWFTools/

#----------------------------------------------------

# Directory where ImageMagick's convert executable is located

imageMagickDir=i:/ImageMagick-6.7.1-Q16/

#----------------------------------------------------

# Use fullpath to ghostscript executable since the exec names are different

# for each platform.

ghostScriptExec=E:/Program Files/gs/gs9.01/bin/gswin32c.exe

#----------------------------------------------------

# Fonts directory passed into PDF2SWF to support highlighting of texts

# in the SWF slides.

fontsDir=C:/Windows/Fonts

#----------------------------------------------------

# This is a workaround for a problem converting PDF files, referenced at

# http://groups.google.com/group/comp.lang.postscript/browse_thread/thread/c2e264ca76534ce0?pli=1

noPdfMarkWorkaround=/etc/bigbluebutton/nopdfmark.ps

#----------------------------------------------------

# These will be copied in cases where the conversion process

# fails to generate a slide from the uploaded presentation

BLANK_SLIDE=/var/bigbluebutton/blank/blank-slide.swf

BLANK_THUMBNAIL=/var/bigbluebutton/blank/blank-thumb.png

#----------------------------------------------------

# Number of minutes the conversion should take. If it takes

# more than this time, cancel the conversion process.

maxConversionTime=5

#----------------------------------------------------

# Maximum number of pages allowed for an uploaded presentation (default 100).

maxNumPages=100

#----------------------------------------------------

# Default dial access number

defaultDialAccessNumber=613-555-1234

#----------------------------------------------------

# Default welcome message to display when the participant joins the web

# conference. This is only used for the old scheduling which will be

# removed in the future. Use the API to create a conference.

defaultWelcomeMessage=<br>Welcome to this BigBlueButton Demo Server.<br><br>For help using BigBlueButton <a href="event:http://www.bigbluebutton.org/content/videos"><u>check out these videos</u></a>.<br><br>

#----------------------------------------------------

# Inject values into grails service beans

beans.presentationService.presentationDir=${presentationDir}

beans.dynamicConferenceService.serviceEnabled=true

beans.dynamicConferenceService.apiVersion=0.7

beans.dynamicConferenceService.minutesElapsedBeforeMeetingExpiration=60

beans.dynamicConferenceService.securitySalt=8cb12ea1f9bd7c59c118d7ac76239899

beans.dynamicConferenceService.defaultWelcomeMessage=${defaultWelcomeMessage}

beans.dynamicConferenceService.defaultDialAccessNumber=${defaultDialAccessNumber}

#----------------------------------------------------

# This URL is where the BBB client is accessible. When a user sucessfully

# enters a name and password, she is redirected here to load the client.

bigbluebutton.web.serverURL=http://118.229.139.43

#----------------------------------------------------

# Assign URL where the logged-out participant will be redirected after sign-out.

# If commented-out, it returns to bigbluebutton.web.serverURL

# bigbluebutton.web.logoutURL=http://118.229.139.43

#------------------------------------------------------

# Setting to enable the old scheduling mechanism. This is temporary

# as we will be moving to use the API later.

#

beans.schedulingService.schedulingServiceEnabled=false

#------------------------------------------------------

# These properties are used to test the conversion process.

# Conference name folder in ${presentationDir} (see above)

beans.presentationService.testConferenceMock=conference-mock-default

beans.dynamicConferenceService.testConferenceMock=conference-mock-default

# Conference room folder in ${presentationDir}/${testConferenceMock}

beans.presentationService.testRoomMock=conference-mock-default

# Uploaded presentation name

beans.presentationService.testPresentationName=appkonference

# Uploaded presentation file

beans.presentationService.testUploadedPresentation=appkonference.txt

# Test voiceBridge number

beans.dynamicConferenceService.testVoiceBridge=99999

5.安裝openoffices

安裝完成後運行(OpenOffice.org 3.0\program):

soffice.exe -headless -nologo -norestore -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

查看8100連接埠是否開啟了:

netstat -anp tcp 

 

TCP 127.0.0.1:8100 0.0.0.0:0 LISTENING

6.現在開啟tomcat,activeMQ,red5,nginx。red5的bigbluebutton應用是依賴於activemq的,所以先開啟activemq.

 

 

瀏覽器中輸入http://localhost/

祝你好運!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.