You asked - i did it.
First of all, you have to update the system
# yum update -y
Then, install openjdk 1.8.0
# yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
Install Ant
# cd /usr/local/src
# wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.6-bin.tar.gz
# tar zxvf apache-ant-1.9.6-bin.tar.gz
# mv apache-ant-1.9.6/ /usr/local/ant
Exports
# wget http://obed.am/export-red5.sh
# sh export-red5.sh
Download and install Red5
# wget http://obed.am/red5-server-1.0.4-RELEASE-server.tar.gz
# tar zxvf red5-server-1.0.4-RELEASE-server.tar.gz
# mv /usr/local/src/red5-server-1.0.4-RELEASE /usr/local/red5
# tar zxvf red5-server-1.0.4-RELEASE-server.tar.gz
# mv /usr/local/src/red5-server-1.0.4-RELEASE /usr/local/red5
Install init script
# wget -O /etc/systemd/system/red5.service http://obed.am/red5.service
# chmod +x /etc/systemd/system/red5.service
# systemctl enable red5.service
Usage
# systemctl start red5.service
# systemctl stop red5.service
# systemctl restart red5.service
Test the result
Go to http://yourserver.com:5080/demos/ofla_demo.html to test Red5 Server over RTMP
That's all. Feel free to ask anything.
#red5 #java #linux #centos7 #centos #flash #streaming #rtmp
thank you very much!!
ReplyDeleteyou are welcome
DeleteIs there a new java and red5 since this post September 18, 2015 ?
Deletethank you very much
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHi, Thanks very much for this. I found it difficult to find a help page that worked as well as the instructions here.
ReplyDeleteI couldn't get Red5 to work on Ubuntu so switched to CentOS and after finding this page and following your instructions, it worked like a charm - Thanks again!
i have suceessfully installed but when i take demo it's show NetConnection.Connect.Failed.. what can i do plzz help..
ReplyDeleteYou have to go to :5080 and install the demo apps first.
Deleteits works! thanks you so much!
ReplyDeleteWell done. Kickass instructions!
ReplyDeletewhy need Ant?
ReplyDeleteI would also like to know why Ant is needed?
ReplyDeletered5 obed.am not found
ReplyDeletewhich link ?
Deletehe means the links on http://obed.am/ and he's right, they're all 404
Deleteeither way, here they are:
https://github.com/Red5/red5-server/releases/download/v1.0.7-RELEASE/red5-server-1.0.7-RELEASE.tar.gz
https://raw.githubusercontent.com/Red5/red5-service/master/src/main/daemon/red5
the exports are missing because obed.am is dead. these are the exports:
Deleteexport ANT_HOME=/opt/ant
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$PATH:/usr/local/ant/bin
export CLASSPATH=.:$JAVA_HOME/lib/classes.zip
export RED5_HOME=/usr/local/red5
echo 'export ANT_HOME=/opt/ant' >> /etc/bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java' >> /etc/bashrc
echo 'export PATH=$PATH:/usr/local/ant/bin' >> /etc/bashrc
echo 'export CLASSPATH=.:$JAVA_HOME/lib/classes.zip' >> /etc/bashrc
echo 'export RED5_HOME=/usr/local/red5' >> /etc/bashrc
i also had to install jsvc on Centos 7.2 minimal since its called in the red5 daemon.
yum install jsvc -y
those issues took all night so i hope i save you some time.
This comment has been removed by the author.
ReplyDeletevery good tutorial. Can you do one on streaming movies to red5 server ?
ReplyDelete