· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Red5 Install/Office Work

Red5Install/OfficeWork


* install
  • dpkg -i firmware-ralink_0.28_all.deb
  • /boot/grub/grub.cfg
    • ipv6.disable=1
  • /etc/modprobe.d/blacklist.conf
  • /etc/apt/sources.list
    • add non-free
  • aptitude update
  • aptitude install firmware-ralink wireless-tools
  • aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev
* http://wiki.kldp.org/wiki.php/Red5Install/EclipseTuto/EclipseFlex

red5 files 0.9.1-4


* /etc/red5
<Loader loaderClass="org.red5.server.tomcat.WebappClassLoader" useSystemClassLoaderAsParent="false" />
  • ehcache.xml
  • keystore
  • keystore.jmx
  • log4j.properties
  • logback.xml
  • password.properties
  • quartz.properties
  • realm.properties
  • red5-common.xml
  • red5-core.xml
  • red5.globals
  • red5.policy
  • red5.properties
  • red5.xml
The main configuration file that wires together the context tree. It takes care of loading "red5-common.xml" and "red5-core.xml" and sets up the rest of the server. This is the first file to be loaded by Red5. The J2EE container is selected in this configuration file by configuring one of the following bean elements.
  • tomcat-users.xml
  • truststore.jmx
  • web.xml
Default web.xml file used by Tomcat. The settings from this file are applied to a web application before it's own WEB_INF/web.xml file.

* /etc/init.d/red5-server
  • DAEMONUSER=_red5
  • JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
  • JAVA_OPTS=
  • RED5_HOME=/usr/share/red5/
  • RED5_OPTS=

* /usr/share/red5
tcheun@debian:/usr/share/red5$ ls -lR
.:
ÇÕ°è 1032
-rw-r--r-- 1 root root  15710 2010-10-02 22:35 boot.jar
lrwxrwxrwx 1 root root      9 2011-04-07 14:14 conf -> /etc/red5
drwxr-xr-x 2 root root   4096 2011-04-07 14:14 lib
lrwxrwxrwx 1 root root     13 2011-04-07 14:14 log -> /var/log/red5
-rwxr-xr-x 1 root root    220 2010-02-22 04:31 red5-debug.sh
-rwxr-xr-x 1 root root    515 2010-02-22 04:31 red5-highperf.sh
-rw-r--r-- 1 root root  25124 2010-10-02 22:35 red5-remoting.jar
-rwxr-xr-x 1 root root    344 2010-10-02 22:35 red5-shutdown.sh
-rw-r--r-- 1 root root 984410 2010-10-02 22:35 red5.jar
-rwxr-xr-x 1 root root   1297 2010-02-22 04:31 red5.sh
lrwxrwxrwx 1 root root     21 2011-04-07 14:14 webapps -> /var/lib/red5/webapps
lrwxrwxrwx 1 root root     15 2011-04-07 14:14 work -> /var/cache/red5

* /usr/share/red5/webapps
tcheun@debian:/usr/share/red5/webapps$ ls -lR
.:
ÇÕ°è 8
-rw-r--r-- 1 root root 1884 2010-02-22 04:31 red5-default.xml
drwxr-xr-x 3 root root 4096 2011-04-07 14:14 root

./root:
ÇÕ°è 40
drwxr-xr-x 2 root root 4096 2011-04-07 14:14 WEB-INF
-rw-r--r-- 1 root root 7336 2010-02-22 04:31 biglogo.png
-rw-r--r-- 1 root root  248 2010-02-22 04:31 crossdomain.xml
-rw-r--r-- 1 root root  894 2010-02-22 04:31 favicon.ico
-rw-r--r-- 1 root root  733 2010-02-22 04:31 favicon.png
-rw-r--r-- 1 root root 4335 2010-10-02 22:35 index.html
-rw-r--r-- 1 root root 5128 2010-02-22 04:31 logo.png

./root/WEB-INF:
ÇÕ°è 12
-rw-r--r-- 1 root root   49 2010-02-22 04:31 red5-web.properties
-rw-r--r-- 1 root root 1219 2010-02-22 04:31 red5-web.xml
-rw-r--r-- 1 root root 2304 2010-02-22 04:31 web.xml

* /usr/share/red5/webapps/root/
Serving HTTP directly from your Red5 Server
Normally, you will be hosting your html files on a webhosting server, which is a separate physical
server than your Red5 server. However, your Red5 server have a built-in webserver that can be
used for testing purposes. To do so, put your html files in Red5 server's folder
/opt/red5/webapps/root/. Here's a real example of HTTP mapping using your Red5 server:
The physical file /opt/red5/webapps/root/demos/ofla_demo.html maps to HTTP URL
http://RED5_SERVER_IP:5080/demos/ofla_demo.html
The only disadvantage of using Red5's own HTTP server is: You will have to always append ":5080"
with your URL IP, and you will not be able to use your domain name to browse your http content.

run demo

* /usr/share/red5/webapps/root/WEB-INFO
  • web.xml ¿¡ ÀÇÇØ root/index.html ¼öÇà ?
Debian "red5-server" package doesn't contains /demos or /installer webapps.
Please note that /installer and /demos webapps are for demonstration purpose 
only and should never be installed on a public red5 server
(no security at all in those applications).

As root, you can install /demos (SWF files) and /installer webapp, by issuing :
  • wget http://www.red5.org/downloads/0_9/red5-0.9.1.tar.gz
  • tar xvzf red5-*.tar.gz
  • cd 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 {} \;
  • cd ..
  • rm -rf red5-*

* https://support.mayfirst.org/wiki/install-red5
  • svn co http://red5.googlecode.com/svn/java/example/trunk red5-examples
  • cd /usr/local/src/red5/red5-0.9~svn3968/webapps/
  • cp -r /usr/local/src/red5-examples/oflaDemo .
  • cd oflaDemo
  • export RED5_HOME=/usr/share/red5
  • ant
  • cp -r www /usr/share/red5/webapps/oflaDemo

note

f your Java networking is broken and any traffic always
results in a "java.net.SocketException: Network is unreachable" error, then here comes a quick fix:

edit /etc/sysctl.d/bindv6only.conf
change value net.ipv6.bindv6only=1 into 0
invoke-rc.d procps restart

ID
Password
Join
Enjoy your life; be pleasant and gay, like the birds in May.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2011-04-11 18:17:40
Processing time 0.0055 sec