Install Red5

Red5 streaming server merupakan sebuah aplikasi streaming server yang berbasis java. disini saya akan mengimplementasikan pada redhat enterprise 5 atau bisa juga dengan centos dan mudah-mudahan berguna untuk kita semua.

Yum Install JDK atau bisa di download dari http://java.sun.com/javase/downloads/index.jsp dalam bentuk
rpm bin

root@inetholic:/data/red5# inetholic red5 # yum install jdk
Loaded plugins: installonlyn, priorities

epel 100% |=========================| 2.1 kB 00:00

logos 100% |=========================| 951 B 00:00

dag 100% |=========================| 951 B 00:00

base 100% |=========================| 1.1 kB 00:00

updates 100% |=========================| 1.1 kB 00:00

primary.xml.gz 100% |=========================| 895 kB 00:00

Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...

Installed: jdk.x86_64 2000:1.6.0_04-fcs
Complete!
root@inetholic:/data/red5# red5 # yum install -y jpackage-utils
Loaded plugins: installonlyn, priorities

epel 100% |=========================| 2.1 kB 00:00

logos 100% |=========================| 951 B 00:00

dag 100% |=========================| 951 B 00:00

base 100% |=========================| 1.1 kB 00:00

updates 100% |=========================| 1.1 kB 00:00

local 100% |=========================| 951 B 00:00
2026 packages excluded due to repository priority protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package jpackage-utils.noarch 0:1.7.3-1jpp.2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
jpackage-utils noarch 1.7.3-1jpp.2.el5 updates 61 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 61 k
Downloading Packages:

jpackage-utils-1.7.3-1jpp 100% |=========================| 61 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

Installing : jpackage-utils [1/1]
Installing : jpackage-utils # [1/1]
Installing : jpackage-utils ## [1/1]
Installing : jpackage-utils ### [1/1]
Installing : jpackage-utils ##### [1/1]
Installing : jpackage-utils ###### [1/1]
Installing : jpackage-utils ####### [1/1]
Installing : jpackage-utils ############ [1/1]
Installing : jpackage-utils ################ [1/1]
Installing : jpackage-utils ################# [1/1]
Installing : jpackage-utils ################## [1/1]
Installing : jpackage-utils ################### [1/1]
Installing : jpackage-utils [1/1]

Installed: jpackage-utils.noarch 0:1.7.3-1jpp.2.el5
Complete!

lihat versi java ...

root@inetholic:/data/red5red5 # java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)

download file apache-ant http://ant.apache.org/bindownload.cgi

root@inetholic:/data/red5/ant # wget http://apache.cbn.net.id/ant/binaries/apache-ant-1.7.1-bi
n.tar.gz
--16:46:23-- http://apache.cbn.net.id/ant/binaries/apache-ant-1.7.1-bin.tar.gz
Resolving apache.cbn.net.id... 202.158.56.242
Connecting to apache.cbn.net.id|202.158.56.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9151860 (8.7M) [application/x-gzip]
Saving to: `apache-ant-1.7.1-bin.tar.gz'


0% [ ] 0 --.-K/s
4% [> ] 378,280 1.65M/s
26% [=========> ] 2,419,896 5.51M/s
31% [===========> ] 2,868,648 4.09M/s
49% [==================> ] 4,497,288 4.94M/s
65% [=========================> ] 6,014,376 5.06M/s
74% [============================> ] 6,800,808 4.75M/s
91% [===================================> ] 8,399,240 5.11M/s
100%[=======================================>] 9,151,860 5.16M/s in 1.7s

16:46:25 (5.16 MB/s) - `apache-ant-1.7.1-bin.tar.gz' saved [9151860/9151860]

root@inetholic:/data/red5/ # tar -zxvf apache-ant-1.7.1-bin.tar.gz
apache-ant-1.7.1/bin/ant
apache-ant-1.7.1/bin/antRun
apache-ant-1.7.1/bin/antRun.pl
apache-ant-1.7.1/bin/complete-ant-cmd.pl
apache-ant-1.7.1/bin/runant.pl
apache-ant-1.7.1/bin/runant.py

dst ....

pindahkan file apache ant ke /opt/ant

root@inetholic:/data/red5/ # mv apache-ant-1.7.1 /opt/ant

buat path ant_home di opt dan path Java /usr/java/jdk1.6.0_04

root@inetholic:/data/red5/ # export ANT_HOME=/opt/ant
root@inetholic:/data/red5/ # export JAVA_HOME=/usr/java/jdk1.6.0_04

buat link file ant ke bin

root@inetholic:/data/red5/ # ln -s /opt/ant/bin/ant /usr/bin/ant

download file red5 red5-0.6.3.tar.gz dan red5-0.7.0.tar.gz
kenapa di download 2 file tersebut karena ada bug pada file library dan kita mencopy file library
yang red5-0.6.3 red5-0.7.0

root@inetholic:/data/red5/red5red5 # wget http://dl.fancycode.com/red5/0.6.3/src/red5-0.6.3.tar.gz
--16:49:16-- http://dl.fancycode.com/red5/0.6.3/src/red5-0.6.3.tar.gz
Resolving dl.fancycode.com... 213.133.108.69
Connecting to dl.fancycode.com|213.133.108.69|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 39311128 (37M) [application/x-gzip]
Saving to: `red5-0.6.3.tar.gz'


16:50:43 (450 KB/s) - `red5-0.6.3.tar.gz' saved [39311128/39311128]

root@inetholic:/data/red5/red5# wget http://red5.nl/installer/red5-0.7.0.tar.gz
--16:51:04-- http://red5.nl/installer/red5-0.7.0.tar.gz
Resolving red5.nl... 193.189.149.192
Connecting to red5.nl|193.189.149.192|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 59742074 (57M) [application/x-gzip]
Saving to: `red5-0.7.0.tar.gz'

17:10:56 (49.0 KB/s) - `red5-0.7.0.tar.gz' saved [59742074/59742074]


extract red5-0.6.3.tar.gz

root@inetholic:/data/red5/red5/red5-0.6.3/red5-0.6.3 # tar -zxvf red5-0.6.3.tar.gz
./red5-0.6.3/
./red5-0.6.3/test/
./red5-0.6.3/test/test_cue1.flv
./red5-0.6.3/test/test_cue.flv
./red5-0.6.3/test/org/
./red5-0.6.3/test/org/red5/
./red5-0.6.3/test/org/red5/server/
./red5-0.6.3/test/org/red5/server/service/
./red5-0.6.3/test/org/red5/server/service/ConversionUtilsTest.java


dst ...

root@inetholic:/data/red5/red5/red5-0.7.0/ # tar -zxvf red5-0.7.0.tar.gz
conf/
conf/jboss/
conf/war/
conf/war/admin/

dst ....

masuk ke red5-0.6.3/lib lalu copy file ivy-1.4.1.jar ke direktori red5-0.7.0

root@inetholic:/data/red5/red5/red5-0.6.3/red5-0.6.3/lib # cp ivy-1.4.1.jar /data/red5/red5/red5-0.7.0/lib


download file ivyconfig.xml & build.xml

root@inetholic:/data/red5/red5/red5-0.7.0/red5-0.7.0 # wget http://jira.red5.org/secure/attachment/10132/ivyconnfig.xml
--17:30:32-- http://jira.red5.org/secure/attachment/10132/ivyconfig.xml
Resolving jira.red5.org... 69.64.37.176
Connecting to jira.red5.org|69.64.37.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1849 (1.8K) [text/xml]
Saving to: `ivyconfig.xml'


0% [ ] 0 --.-K/s
100%[=======================================>] 1,849 --.-K/s in 0s

17:30:33 (110 MB/s) - `ivyconfig.xml' saved [1849/1849]

root@inetholic:/data/red5/red5/red5-0.7.0red5-0.7.0 # mv build.xml build.old

root@inetholic:/data/red5/red5/red5-0.7.0red5-0.7.0 # http://jira.red5.org/secure/attachment/10131/build.xml
--17:30:37-- http://jira.red5.org/secure/attachment/10131/build.xml
Resolving jira.red5.org... 69.64.37.176
Connecting to jira.red5.org|69.64.37.176|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40147 (39K) [text/xml]
Saving to: `build.xml'


0% [ ] 0 --.-K/s
13% [====> ] 5,571 15.5K/s
35% [=============> ] 14,259 19.7K/s
77% [=============================> ] 31,038 28.2K/s
100%[=======================================>] 40,147 36.4K/s in 1.1s

17:30:39 (36.4 KB/s) - `build.xml' saved [40147/40147]

build .... dengan ant

root@inetholic:/data/red5/red5/red5-0.7.0/red5-0.7.0 # ant
Buildfile: build.xml

clean:
[delete] Deleting directory /data/red5/red5/red5-0.7.0/bin
[delete] Deleting directory /data/red5/red5/red5-0.7.0/dist
[delete] Deleting directory /data/red5/red5/red5-0.7.0/cluster

sampai ...

BUILD SUCCESSFUL
Total time: 11 minutes 31 seconds

root@inetholic:/data/red5/red5/red5-0.7.0 # ls
bin dist log red5.sh
build.properties doc Makefile red5-shutdown.bat
build.xml ivyconfig.xml red5-0.7.0.tar.gz red5-shutdown.sh
build.xml.1 ivyconfig.xml.1 red5.bat src
build.xml.old ivy.xml red5-debug.bat swf
cluster lib red5-debug.sh webapps
conf license.txt red5.jar

masuk ke direktori dist

root@inetholic:/data/red5/red5/red5-0.7.0 # cd dist/

lalu jalankan dengan sh red5.sh

root@inetholic:/data/red5/red5/red5-0.7.0/dist # sh red5.sh


check port 5080

root@inetholic:/opt/red5 # nmap 127.0.0.1 -p 5080

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-08-28 18:02 WIT
Interesting ports on localhost.localdomain (127.0.0.1):
PORT STATE SERVICE
5080/tcp closed unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.023 seconds

kok belum jalan ya ...

sabar ini service nya lama .... hhehehehe saya juga sempat bingung akhirnya saya tinggal makan dan 2 menit kemudian ....

saya nmap kembali
root@inetholic:/opt/red5 # nmap 127.0.0.1 -p 5080

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-08-28 18:26 WIT
Interesting ports on localhost.localdomain (127.0.0.1):
PORT STATE SERVICE
5080/tcp open unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.029 seconds

buka browser firefox lalu http://ip-server-elo:5080/demos

http://127.0.0.1:5080/demos

referensi : http://osflash.org/red5/linux-install


* Jangan jadikan kami sebagai sapi perahan tapi jadikan kami sebagai panutan di dunia IT
* Kami ingin hidup layak dan tempatkan kami di tempat yang layak dan sejajar tanpa perbedaan
* Hapus Outsource dan Tenaga Kontrak di Indonesia ...

untuk teman-teman seperjuangan saya ....

salam
iqbal

Komentar

Postingan populer dari blog ini

Mengatasi error unrecognise request di Linkaja

OJS and Nginx

Tentang Findtoyou.com