1. Скачал red5-0.9.RC2 с гуглокода.
2. Установил ant из репозиториев
3. Распаковал архив в /opt/red5
4. Расскоментировал bean'ы с rtmp(s,t) в /opt/red5/conf/red5-core.xml (на всякий случай прикрепил его к сообщению)
5. Отключил _все_ правила iptables и ipv6 (по дефолту ред5 слушал tcp6)
6. Запустил host:5080/installer и установил необходимые демо приложения
7. Просканил nmap'ом порты с локалхоста:
Код: Выделить всё
# nmap localhost -p 1935
Starting Nmap 4.62 ( http://nmap.org ) at 2010-07-16 10:49 MSD
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
1935/tcp open rtmp
Nmap done: 1 IP address (1 host up) scanned in 0.075 secondsКод: Выделить всё
# nmap domain -p 1935
Starting Nmap 5.00 ( http://nmap.org ) at 2010-07-16 10:50 MSD
Interesting ports on domain (ip.add.re.ss):
PORT STATE SERVICE
1935/tcp open rtmp
Nmap done: 1 IP address (1 host up) scanned in 0.26 seconds8. Когда запускаю red5 из /opt/red5/red5-debug.sh (чтобы логи поподробнее были). Мне пишется, что приложения стартовали, все ок:
Код: Выделить всё
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Initializing Coyote HTTP/1.1 on http-5080
[INFO] [main] org.apache.coyote.http11.Http11Protocol - Starting Coyote HTTP/1.1 on http-5080
[INFO] [Launcher:/dump] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@586dd8f1: defining beans []; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/messageRecorder] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/fitcDemo] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/fitcDemo] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@65e73498: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/SOSample] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/bwcheck] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/messageRecorder] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@f4b2263: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2607c28c: defining beans [placeholderConfig,web.context,web.scope]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/SOSample] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@781fb069: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/installer] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/bwcheck] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5fab9dac: defining beans [placeholderConfig,web.context,web.scope,bwcheck.handler,bwCheckService.servi
ce]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/midiDemo] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/midiDemo] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@65f102c1: defining beans [placeholderConfig,web.context,web.scope,web.handler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [Launcher:/installer] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@333cb1eb: defining beans [placeholderConfig,web.context,web.scope,web.handler,installer.service]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
[INFO] [main] org.red5.server.tomcat.rtmpt.RTMPTLoader - Loading RTMPT context
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0-snapshot
[INFO] [Launcher:/installer] org.red5.server.service.Installer - Installer service created
[INFO] [Launcher:/echo] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/echo] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2d4b1fda: defining beans [placeholderConfig,web.context,web.scope,web.handler,flexMessaging.service]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing Coyote HTTP/1.1 on http-8088
[INFO] [main] org.red5.server.tomcat.rtmpt.RTMPTLoader - Starting RTMPT engine
[INFO] [Launcher:/oflaDemo] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Launcher:/oflaDemo] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2537e19e: defining beans [placeholderConfig,web.context,web.scope,web.handler,demoService.service]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@61697d14
oflaDemo appStart
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Starting Coyote HTTP/1.1 on http-8088
[INFO] [main] org.red5.server.tomcat.TomcatLoader - Setting connector: org.apache.catalina.connector.Connector
[INFO] [main] org.red5.server.tomcat.rtmps.RTMPSLoader - Loading RTMPS context
[INFO] [main] org.apache.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/6.0-snapshot
[INFO] [main] org.red5.server.tomcat.rtmps.RTMPSLoader - Connector info: org.apache.catalina.connector.Connector/2.1
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Initializing Coyote HTTP/1.1 on http-8443
[INFO] [main] org.red5.server.tomcat.rtmps.RTMPSLoader - Starting RTMPS engine
[INFO] [main] org.apache.coyote.http11.Http11NioProtocol - Starting Coyote HTTP/1.1 on http-8443
Bootstrap complete10. Решаю послушать tcpdump'ом, что творится в датском королевстве. Что то типа
# tcpdump -n -nn -ttt 'not dst port 22' показывает активность только на 5080 порту. никакой активности на 1935, на который, по идее, должно стучаться приложение.
Собственно говоря, я зашел в тупик. Никаких сообщений об ошибках нет, но ничего не работает.
В гугле у людей куча аналогичных ошибок, но нигде толковых объяснений нету.
зы если это имеет значение:
Код: Выделить всё
$ dpkg -l | grep -E "java|ant"
ii ant 1.8.0-4 Java based build tool like make
ii ca-certificates-java 20100412 Common CA certificates (JKS keystore)
ii java-common 0.38 Base of all Java packages
ii libjaxp1.3-java 1.3.05-1 Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX)
ii libxerces2-java 2.9.1-4.1 Validating XML parser for Java with DOM level 3 support
ii tzdata-java 2010j-1 time zone and daylight-saving time data for use by java runtim
$ uname -a
Linux red5 2.6.26-2-amd64 #1 SMP Sun Jun 20 20:16:30 UTC 2010 x86_64 GNU/Linux
##на всякий случай повторюсь: Debian lenny