Q: How could I install Red5 in my dedicated Linux Server?
A: Before you install Red5, you need prepare the software below: (All the file is put in the folder /usr/local/, you can put any where as you like)
JDK:
Download from
http://cds.sun.com/is-bin/INTERSHOP....linux-i586.bin
Ant:
Download from
http://www.apache.org/dist/ant/binar...7.1-bin.tar.gz
Red5:
Download from
http://dl.fancycode.com/red5/red5-0.6.2.tar.gz
(If you need compile Red5 by yourself, please use this version 0.6.2, the high version may have conflicts with your server)
1.Configure Java environment
1)Please change the file name of “Jdk” you download to “jdk-6u16-linux-i586.bin”, you can use command “mv”.
2)Add excutable privilege to this file: use command: “chomd u+x jdk-6u16-linux-i586.bin”
3)Install jdk: use command: “./jdk-6u16-linux-i586.bin”
4)Enable java environment: Open “/etc/profile”, add the code below into it:
JAVA_HOME=/usr/local/jdk1.6.0_16
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export JAVA_HOME PATH CLASSPATH
Then save (Your PATH should be the right one according to your server), use command:
“source /etc/profile” to enable it.
5) Then you can use command “java -version” to check if the setting is right.
2.Configure Apache Ant
1)“tar zxvf apache-ant-1.7.1-bin.tar.gz”, then “mv apache-ant-1.7.1 ant”
2)Enable Ant path: Open “/etc/profile”, add the code below into it:
export ANT_HOME=/usr/local/ant
export PATH=$PATH:/usr/local/ant/bin
Then save and use command “source /etc/profile” to enable it.
3.Compile and Install Red5
1)“tar zxvf red5-0.6.2.tar.gz”, then “mv red5-0.6.2 red5”
2)Enter the folder “red5” use the command “ant” to compile and Install Red5.
3)If all is OK, after 3 or 4 min, the red5 will be install successfully.
4)Use command “./red5.sh start” to start your red5.
By The Way: About how to configure Red5 into our chat, you can according
How to use my own Red5 or FMS