Install Red5 on CentOS 7

Posted on

How-to install Red5 server on CentOS 7
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
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
source: http://livestreamtutorial.blogspot.com/2016/03/red5-on-centos-7.html

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.