***This guide is now outdated – If you’re desperate to get RED5 up and running, have a look at our “how to set up RED5 on Ubuntu 18.04 instead***
First of all, let’s update the system:
# yum update -y
Then, let’s install openjdk 1.8.0:
# yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
Now we 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
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
Let’s see if it worked
Go to http://yourserver.com:5080/demos/ofla_demo.html to test Red5 Server over RTMP
We hope this worked for you and good luck!