Difference between revisions of "Red5: Instalasi dari Repository"

From OnnoWiki
Jump to navigation Jump to search
 
Line 108: Line 108:
 
  cd /usr/local/src
 
  cd /usr/local/src
 
  tar zxvf red5-1.0.0-RC1.tar.gz
 
  tar zxvf red5-1.0.0-RC1.tar.gz
 +
cd red5-1.0.0
 +
cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
 +
cp -R webapps/installer /var/lib/red5/webapps/root/installer
 +
find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;
 +
cd ..
 +
 +
===Red5 1.0.0 RC2===
 +
 +
wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC2.tar.gz
 +
cp red5-* /usr/local/src
 +
cd /usr/local/src
 +
tar zxvf red5-1.0.0-RC2.tar.gz
 
  cd red5-1.0.0
 
  cd red5-1.0.0
 
  cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
 
  cp -R webapps/root/demos /var/lib/red5/webapps/root/demos

Latest revision as of 08:05, 11 July 2012

Instalasi

Instalasi menggunakan perintah

sudo apt-get install subversion java-package sun-java6-jdk ant htop wget screen telnet
sudo apt-get install red5-server red5-doc
sudo updatedb

Kalau berhasil dengan baik restart menggunakan perintah

/etc/init.d/red5-server restart

Test Java

Ketik perintah

which java

harusnya keluar

/usr/bin/java

Ketik perintah

java -version

akan keluar

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK Server VM (build 20.0-b11, mixed mode)

sebaiknya pakai sun Java,keluaran java -version adalah

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

switch default

sudo update-alternatives --config java

akan keluar

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode

Press enter to keep the current choice[*], or type selection number:

Pilih java-6-sun dalam hal ini pilih nomor 2

Siapkan Lingkungan

Siapkan lingkungan, lihat versi

ls /usr/lib/jvm/
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.24/jre
export ANT_HOME=/usr/share/ant/

flash plugin installer

sudo apt-get install flashplugin-installer flashplugin-nonfree flashplugin-nonfree-extrasound

Jika berjalan dengan baik harus kita dapat menginstalasi aplikasi yang sudah di siapkan.

Akses ke Server

Test server menggunakan port 5080 (default red5)

http://localhost:5080

Install Test Aplikasi

Instalasi Aplikasi untuk testing

cd /usr/local/src
svn co http://red5.googlecode.com/svn/java/server/trunk red5
cd /usr/local/src/red5/
cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
cp -R webapps/installer /var/lib/red5/webapps/installer
find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;

Red5 0.9.1

Dari source code

wget http://trac.red5.org/downloads/0_9/red5-0.9.1.tar.gz
cp red5-* /usr/local/src
cd /usr/local/src
tar zxvf red5-0.9.1.tar.gz 
cd red5-0.9.1
cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
cp -R webapps/installer /var/lib/red5/webapps/root/installer
find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;
cd ..


Red5 1.0.0 RC1

wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC1.tar.gz
cp red5-* /usr/local/src
cd /usr/local/src
tar zxvf red5-1.0.0-RC1.tar.gz
cd red5-1.0.0
cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
cp -R webapps/installer /var/lib/red5/webapps/root/installer
find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;
cd ..

Red5 1.0.0 RC2

wget http://trac.red5.org/downloads/1_0/red5-1.0.0-RC2.tar.gz
cp red5-* /usr/local/src
cd /usr/local/src
tar zxvf red5-1.0.0-RC2.tar.gz
cd red5-1.0.0
cp -R webapps/root/demos /var/lib/red5/webapps/root/demos
cp -R webapps/installer /var/lib/red5/webapps/root/installer
find /var/lib/red5/webapps/ -type d -exec chown _red5 {} \;
cd ..

Test Aplikasi

Juga flash plugin installer

sudo apt-get install flashplugin-installer flashplugin-nonfree flashplugin-nonfree-extrasound

Install Aplikasi

Atau instalasi aplikasi

http://localhost:5080/installer

Tunggu beberapa saat karena kita harus download dari Internet

Kita dapat menginstalasi

  • oflaDemo
  • SOSample


Jalankan Demo

Akses melalui Web

http://localhost:5080/demos

Jalankan

  • OFLA Demo
  • Publisher


Error

Saat mengakses

http://192.168.0.61:5080/installer/

Keluar Error

Trying to connect to war location
Net status: NetConnection.Connect.Failed
Trying to connect to war location
Net status: NetConnection.Connect.Failed
dst ...

SOLUSI:

Belum ada

Referensi


Pranala Menarik