1) install the Java 6 environment. in this case, you can directly install yum. 1yum-yinstalljava-1.6.0-openjdkjava-1.6.0-openjdk-devel2) install subversion to get the appropriate version. I will use svn and install svn first: 1yuminstallsvn: check your distribution source... 1) install the Java 6 environment
You can use yum directly.
2) install subversion
To get a proper version, I will use svn and install svn first:
1
Yum install svn
It depends on whether your release source is available. if I do not, I will use it.
1
Yum install subversion
3) install ant, ivy, and apache projects
It should be noted that yum can install ant, but it is always faulty after installation. it may be incomplete!
You can also download the project file and put the source file under the src directory of usr:
Or wget http://www.sohailriaz.com/downloads/red5.txt
10) grant the running permission
1
Chmod + x/etc/init. d/red5
11) install and start the service
1
/Sbin/chkconfig -- add red5
2
/Sbin/chkconfig red5 on
3
/Sbin/service red5 start
12) detection system
1
/Etc/init. d/red5 status
When you access http: // IP: 5080 on the webpage, the installation and configuration are successful!
13) further questions
Http: // ip: 5080/demos/port_tester.html
Test the port status of the website. if it is found to be all failed, there may be a problem:
01
But if you went to port_tester.swf using demos above or your application shows connections FAILS, this is an issue of RTMPT and RTMPTS. You can see it by running
02
/Usr/local/red5/red5.sh
03
Output trancated
04
[INFO] [main] org. red5.server. tomcat. TomcatLoader-RTMPT server bean was not found
05
[INFO] [main] org. red5.server. tomcat. TomcatLoader-RTMPS server bean was not found
06
Output truncated
07
If you see this you have to uncomment the RTMPT and RTMPTS TomcatLoader in/usr/local/red5/conf/red5-core.xml
08
Vi/usr/local/red5/conf/red5-core.xml
09
Search for a lines
10
11
12
13
Remove From end
14
Same goes for RTMPS
15
16
17
18
Remove From end
19
Restart the red5 services and connection fails problem will be fixed.
20
If you any question please use comments.
14) set a firewall
Add the following content to the/etc/sysconfig/iptables file:
1
-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 1935-j ACCEPT-A RH-Firewall-1-INPUT-m state -- state NEW-m tcp-p tcp -- dport 5080- j ACCEPT
Restart firewall
1
/Sbin/service iptables restart
Check whether the port is open
1
/Sbin/iptables-L-n
15) further test
* Note: all the demos in Red5 must be installed before they can run normally.
Download http://red5.googlecode.com/files/admin.jsp
Upload to red5/webapps/root
Download http://red5.googlecode.com/files/AdminPlugin-1.0.zip
Decompress the package to red5/plugins.
Restart Red5/etc/init. d/red5 restart
Accessing http://www.2cto.com/admin. jsp
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.