next up previous contents
Next: 安裝必備工具 Up: Openmeetings 安裝 Previous: 前言   Contents

安裝 red5

  1. 必須安裝先 java-1.6.0-openjdk。
    [root@moodle ~]# yum install java-1.6.0-openjdk
    
  2. http://code.google.com/p/openmeetings/ 網站下載套件 tarball,放到 /var/www/html/ 下。
    [root@moodle ~]# cd /var/www/html/
    [root@moodle html]# wget http://red5.org/downloads/red5/1_0_1/red5-1.0.1.tar.gz
    
  3. 解打包壓縮後,出現 red5 資料夾。
    [root@moodle html]# tar zxvf red5-1.0.1.tar.gz 
    [root@moodle html]# ll -d red5-server-1.0/
    drwxr-xr-x. 8 root root 4096 Mar 15 16:20 red5-server-1.0/
    
  4. 進入 red5-server-1.0 目錄,執行 red5.sh 腳本啟動服務, 特別注意﹗主機名稱若查詢不到或不正確,red5 無法啟動
    [root@moodle red5]# ./red5.sh 2>&1 | grep ERROR --color
    16:34:22,057 |-ERROR in ch.qos.logback.core.util.ContextUtil@3e20e8c4 - Failed to get local hostname java.net.UnknownHostException: moodle1: moodle1: Name or service not known
    16:34:22,195 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERRORFILE]
    16:34:22,204 |-INFO in ch.qos.logback.core.FileAppender[ERRORFILE] - File property is set to [log/error.log]
    [ERROR] [main] org.quartz.impl.StdSchedulerFactory - Couldn't generate instance Id!
    
  5. 若主機名稱尚無法確定,可先使用 localhost,再執行 red5.sh 腳本啟動服務,已無主機名稱錯誤訊息,red5 可以正常運作。
    [root@moodle red5]# hostname localhost
    [root@moodle red5]# ./red5.sh 2>&1 | grep ERROR --color
    16:36:25,214 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERRORFILE]
    16:36:25,223 |-INFO in ch.qos.logback.core.FileAppender[ERRORFILE] - File property is set to [log/error.log]
    
  6. 將 red5.sh 送到背景執行。
    ^Z
    [1]+  Stopped                 ./red5.sh 2>&1 | grep ERROR --color
    [root@moodle red5]# bg %1
    [1]+ ./red5.sh 2>&1 | grep ERROR --color &
    



2018-08-14