View Single Post
  #2 (permalink)  
Old 01-29-2008, 09:06 AM
HostV Joseph HostV Joseph is offline
Member
 
Join Date: Dec 2007
Posts: 92
Default

Requirements

1. Java jdk. the latest available version. 1.6.* see the centos howto http://wiki.centos.org/HowTos/JavaOnCentOS
2. apache ant. It may be in the package repositories. if not download it. http://ant.apache.org/
3. subversion - yum install subversion
That should be all of the basic requirements.


Installation

Code:
VPSxxx:~# svn co http://svn1.cvsdude.com/osflash/red5/java/server/trunk/ red5-trunk
that should checkout the red5 trunk into the red5-trunk directory. Now you should have both java and ant installed at this point. To make sure do the following:

Code:
VPSxxx:~# java -v
should display java version

Code:
VPSxxx:~# ant -version
should be 1.7.0

now you are ready to build the server.

Code:
VPSxxx:~# cd red5-trunk
VPSxxx:~/red5trunk# ant ivyclear dist
that will clear the ivy configs and build the server. Once that is finished We should first try and run the server from the red5-trunk/dist directory to make sure it is working.

Code:
VPSxxx:~/red5trunk# cd dist
VPSxxx:~/red5trunk/dist# chmod 755 red5.sh
VPSxxx:~/red5trunk/dist# screen
VPSxxx:~/red5trunk/dist# sh red5.sh
At this point the server should start. You can hit Ctr+ C to stop it. If you get this far without errors you should be good to go. However, it is good to keep red5 in /usr/local/red5 so do the following.
Code:
VPSxxx:~/red5trunk# mkdir /usr/local/red5
VPSxxx:~/red5trunk# cp -R dist/* /usr/local/red5
Now you can navigate to /usr/local/red5 and start the server in the same way as above. If at this point there are no errors you should now have the latest version of red5 installed and working fine.

Code:
VPSxxx:/usr/local/red5# sh red5.sh
Quote:
Use screen to start red5 because when you close out your ssh session red5 will shut down unless it is running as a daemon process.
Reply With Quote