start.bat 运行不到10s,就闪退了,下面是日志。
2022-03-15 15:51:43,487 [main] INFO org.red5.server.Launcher - Red5 Server 1.2.6 (https://github.com/Red5)
2022-03-15 15:51:43,938 [main] INFO o.r.spring.Red5ApplicationContext - setApplicationContext: org.springframework.context.support.FileSystemXmlApplicationContext@45752059, started on Tue Mar 15 15:51:43 CST 2022
2022-03-15 15:51:43,944 [main] INFO o.r.spring.Red5ApplicationContext - Red5ApplicationContext init
2022-03-15 15:51:44,326 [main] WARN n.s.e.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/red5-server/lib/ehcache-2.10.6.jar!/ehcache-failsafe.xml
2022-03-15 15:51:45,221 [main] INFO o.r.spring.Red5ApplicationContext - setApplicationContext: org.springframework.context.support.FileSystemXmlApplicationContext@45752059, started on Tue Mar 15 15:51:43 CST 2022
2022-03-15 15:51:45,224 [main] INFO o.r.spring.Red5ApplicationContext - Red5ApplicationContext init
2022-03-15 15:51:45,326 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP will be bound to [0.0.0.0:1935]
2022-03-15 15:51:45,327 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings
Acceptor style: default I/O threads: 8
TCP no-delay: true keep-alive: false
2022-03-15 15:51:45,535 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - Traffic class modification is disabled
2022-03-15 15:51:45,535 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - Send buffer size: 65536 recv buffer size: 65536 so linger: -1 traffic class: 0
2022-03-15 15:51:45,591 [main] INFO org.red5.server.ContextLoader - ContextLoader init
2022-03-15 15:51:45,593 [main] INFO org.red5.server.ContextLoader - Loading: default.context = ${red5.root}/webapps/red5-default.xml => D:\red5-server/webapps/red5-default.xml
2022-03-15 15:51:45,680 [main] INFO org.red5.server.Context - Setting parent bean factory as core
2022-03-15 15:51:45,687 [main] INFO o.r.net.websocket.WebSocketPlugin - Setting server scope listener
2022-03-15 15:51:45,687 [main] INFO o.r.net.websocket.WebSocketPlugin - Got global scope: default
2022-03-15 15:51:45,689 [main] INFO o.red5.server.plugin.PluginLauncher - Loaded plugin: org.red5.net.websocket.WebSocketPlugin
2022-03-15 15:51:45,689 [main] INFO org.red5.server.tomcat.WarDeployer - War deployer service created
2022-03-15 15:51:45,691 [main] INFO org.red5.server.tomcat.WarDeployer - Starting WarDeployer
2022-03-15 15:51:45,692 [main] INFO org.red5.server.tomcat.WarDeployer - Deploy wars without app start
2022-03-15 15:51:45,796 [main] INFO org.red5.server.tomcat.TomcatLoader - Loading Tomcat
2022-03-15 15:51:45,796 [main] INFO org.red5.server.tomcat.TomcatLoader - Server root: D:\red5-server
2022-03-15 15:51:45,797 [main] INFO org.red5.server.tomcat.TomcatLoader - Config root: D:\red5-server\conf
2022-03-15 15:51:45,841 [main] INFO org.red5.server.tomcat.TomcatLoader - Application root: D:\red5-server/webapps
2022-03-15 15:51:46,100 [main] INFO org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine
2022-03-15 15:51:46,230 [main] INFO o.a.c.core.AprLifecycleListener - The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [D:\red5-server\lib\native]
2022-03-15 15:51:46,238 [main] INFO o.a.c.http11.Http11Nio2Protocol - Initializing ProtocolHandler ["http-nio2-0.0.0.0-5080"]
2022-03-15 15:51:46,283 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat]
2022-03-15 15:51:46,285 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.61
2022-03-15 15:51:46,418 [0.0.0.0-startStop-1] INFO o.a.catalina.startup.ContextConfig - No global web.xml found
2022-03-15 15:51:46,515 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:46,626 [0.0.0.0-startStop-1] WARN o.a.c.util.SessionIdGeneratorBase - Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [109] milliseconds.
2022-03-15 15:51:46,661 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/live] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:46,804 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/chat] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:46,805 [0.0.0.0-startStop-1] INFO o.r.net.websocket.WebSocketPlugin - getWsServerContainerInstance: /chat
2022-03-15 15:51:46,863 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[.0.0.0].[/persistence] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:46,887 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/vod] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:46,987 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/oflaDemo] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:47,028 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/SOSample] - No Spring WebApplicationInitializer types detected on classpath
2022-03-15 15:51:47,041 [main] INFO o.a.c.http11.Http11Nio2Protocol - Starting ProtocolHandler ["http-nio2-0.0.0.0-5080"]
2022-03-15 15:51:47,043 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: path: D:\red5-server\webapps\root\
2022-03-15 15:51:47,045 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /live path: D:\red5-server\webapps\live\
2022-03-15 15:51:47,046 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /chat path: D:\red5-server\webapps\chat\
2022-03-15 15:51:47,046 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /persistence path: D:\red5-server\webapps\persistence\
2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /vod path: D:\red5-server\webapps\vod\
2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /oflaDemo path: D:\red5-server\webapps\oflaDemo\
2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /SOSample path: D:\red5-server\webapps\SOSample\
2022-03-15 15:51:47,048 [main] INFO org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT server configuration was not specified
2022-03-15 15:51:47,049 [main] INFO o.r.server.service.ShutdownServer - JEE server was found: TomcatLoader [serviceEngineName=red5Engine]
2022-03-15 15:51:47,057 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - Shutdown server start
2022-03-15 15:51:47,061 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - Starting socket server on 127.0.0.1:9999
2022-03-15 15:51:47,072 [pool-7-thread-1] ERROR o.r.server.service.ShutdownServer - Cannot bind to port: 9999, ensure no other instances are bound or choose another port
java.net.BindException: Address already in use: NET_Bind
at java.base/java.net.PlainSocketImpl.bind0(Native Method)
at java.base/java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:132)
at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:452)
at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
at java.base/java.net.ServerSocket.(ServerSocket.java:243)
at org.red5.server.service.ShutdownServer.start(ShutdownServer.java:158)
at org.red5.server.service.ShutdownServer$1.run(ShutdownServer.java:119)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-03-15 15:51:47,073 [pool-7-thread-1] INFO o.red5.server.plugin.PluginRegistry - Destroying and cleaning up 1 plugins
2022-03-15 15:51:47,074 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Shutting down
2022-03-15 15:51:47,074 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Unloading context default.context on shutdown
2022-03-15 15:51:47,079 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Shutdown complete
2022-03-15 15:51:47,083 [Thread-3] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport stop
2022-03-15 15:51:47,095 [Thread-5] INFO o.red5.server.plugin.PluginRegistry - Destroying and cleaning up 0 plugins
2022-03-15 15:52:17,087 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - One or more contexts didn't close in the allotted time
start.bat 运行不到10s,就闪退了,下面是日志。 2022-03-15 15:51:43,487 [main] INFO org.red5.server.Launcher - Red5 Server 1.2.6 (https://github.com/Red5) 2022-03-15 15:51:43,938 [main] INFO o.r.spring.Red5ApplicationContext - setApplicationContext: org.springframework.context.support.FileSystemXmlApplicationContext@45752059, started on Tue Mar 15 15:51:43 CST 2022 2022-03-15 15:51:43,944 [main] INFO o.r.spring.Red5ApplicationContext - Red5ApplicationContext init 2022-03-15 15:51:44,326 [main] WARN n.s.e.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/red5-server/lib/ehcache-2.10.6.jar!/ehcache-failsafe.xml 2022-03-15 15:51:45,221 [main] INFO o.r.spring.Red5ApplicationContext - setApplicationContext: org.springframework.context.support.FileSystemXmlApplicationContext@45752059, started on Tue Mar 15 15:51:43 CST 2022 2022-03-15 15:51:45,224 [main] INFO o.r.spring.Red5ApplicationContext - Red5ApplicationContext init 2022-03-15 15:51:45,326 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP will be bound to [0.0.0.0:1935] 2022-03-15 15:51:45,327 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport Settings Acceptor style: default I/O threads: 8 TCP no-delay: true keep-alive: false 2022-03-15 15:51:45,535 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - Traffic class modification is disabled 2022-03-15 15:51:45,535 [main] INFO o.r.s.net.rtmp.RTMPMinaTransport - Send buffer size: 65536 recv buffer size: 65536 so linger: -1 traffic class: 0 2022-03-15 15:51:45,591 [main] INFO org.red5.server.ContextLoader - ContextLoader init 2022-03-15 15:51:45,593 [main] INFO org.red5.server.ContextLoader - Loading: default.context = ${red5.root}/webapps/red5-default.xml => D:\red5-server/webapps/red5-default.xml 2022-03-15 15:51:45,680 [main] INFO org.red5.server.Context - Setting parent bean factory as core 2022-03-15 15:51:45,687 [main] INFO o.r.net.websocket.WebSocketPlugin - Setting server scope listener 2022-03-15 15:51:45,687 [main] INFO o.r.net.websocket.WebSocketPlugin - Got global scope: default 2022-03-15 15:51:45,689 [main] INFO o.red5.server.plugin.PluginLauncher - Loaded plugin: org.red5.net.websocket.WebSocketPlugin 2022-03-15 15:51:45,689 [main] INFO org.red5.server.tomcat.WarDeployer - War deployer service created 2022-03-15 15:51:45,691 [main] INFO org.red5.server.tomcat.WarDeployer - Starting WarDeployer 2022-03-15 15:51:45,692 [main] INFO org.red5.server.tomcat.WarDeployer - Deploy wars without app start 2022-03-15 15:51:45,796 [main] INFO org.red5.server.tomcat.TomcatLoader - Loading Tomcat 2022-03-15 15:51:45,796 [main] INFO org.red5.server.tomcat.TomcatLoader - Server root: D:\red5-server 2022-03-15 15:51:45,797 [main] INFO org.red5.server.tomcat.TomcatLoader - Config root: D:\red5-server\conf 2022-03-15 15:51:45,841 [main] INFO org.red5.server.tomcat.TomcatLoader - Application root: D:\red5-server/webapps 2022-03-15 15:51:46,100 [main] INFO org.red5.server.tomcat.TomcatLoader - Starting Tomcat servlet engine 2022-03-15 15:51:46,230 [main] INFO o.a.c.core.AprLifecycleListener - The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [D:\red5-server\lib\native] 2022-03-15 15:51:46,238 [main] INFO o.a.c.http11.Http11Nio2Protocol - Initializing ProtocolHandler ["http-nio2-0.0.0.0-5080"] 2022-03-15 15:51:46,283 [main] INFO o.a.catalina.core.StandardService - Starting service [Tomcat] 2022-03-15 15:51:46,285 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.61 2022-03-15 15:51:46,418 [0.0.0.0-startStop-1] INFO o.a.catalina.startup.ContextConfig - No global web.xml found 2022-03-15 15:51:46,515 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:46,626 [0.0.0.0-startStop-1] WARN o.a.c.util.SessionIdGeneratorBase - Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [109] milliseconds. 2022-03-15 15:51:46,661 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/live] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:46,804 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/chat] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:46,805 [0.0.0.0-startStop-1] INFO o.r.net.websocket.WebSocketPlugin - getWsServerContainerInstance: /chat 2022-03-15 15:51:46,863 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[.0.0.0].[/persistence] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:46,887 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/vod] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:46,987 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/oflaDemo] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:47,028 [0.0.0.0-startStop-1] INFO o.a.c.c.C.[.[0.0.0.0].[/SOSample] - No Spring WebApplicationInitializer types detected on classpath 2022-03-15 15:51:47,041 [main] INFO o.a.c.http11.Http11Nio2Protocol - Starting ProtocolHandler ["http-nio2-0.0.0.0-5080"] 2022-03-15 15:51:47,043 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: path: D:\red5-server\webapps\root\ 2022-03-15 15:51:47,045 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /live path: D:\red5-server\webapps\live\ 2022-03-15 15:51:47,046 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /chat path: D:\red5-server\webapps\chat\ 2022-03-15 15:51:47,046 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /persistence path: D:\red5-server\webapps\persistence\ 2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /vod path: D:\red5-server\webapps\vod\ 2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /oflaDemo path: D:\red5-server\webapps\oflaDemo\ 2022-03-15 15:51:47,047 [main] INFO org.red5.server.tomcat.TomcatLoader - Context initialized: /SOSample path: D:\red5-server\webapps\SOSample\ 2022-03-15 15:51:47,048 [main] INFO org.red5.server.tomcat.TomcatLoader - Dedicated RTMPT server configuration was not specified 2022-03-15 15:51:47,049 [main] INFO o.r.server.service.ShutdownServer - JEE server was found: TomcatLoader [serviceEngineName=red5Engine] 2022-03-15 15:51:47,057 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - Shutdown server start 2022-03-15 15:51:47,061 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - Starting socket server on 127.0.0.1:9999 2022-03-15 15:51:47,072 [pool-7-thread-1] ERROR o.r.server.service.ShutdownServer - Cannot bind to port: 9999, ensure no other instances are bound or choose another port java.net.BindException: Address already in use: NET_Bind at java.base/java.net.PlainSocketImpl.bind0(Native Method) at java.base/java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:132) at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:452) at java.base/java.net.ServerSocket.bind(ServerSocket.java:381) at java.base/java.net.ServerSocket.(ServerSocket.java:243)
at org.red5.server.service.ShutdownServer.start(ShutdownServer.java:158)
at org.red5.server.service.ShutdownServer$1.run(ShutdownServer.java:119)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2022-03-15 15:51:47,073 [pool-7-thread-1] INFO o.red5.server.plugin.PluginRegistry - Destroying and cleaning up 1 plugins
2022-03-15 15:51:47,074 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Shutting down
2022-03-15 15:51:47,074 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Unloading context default.context on shutdown
2022-03-15 15:51:47,079 [pool-7-thread-1] INFO org.red5.server.ContextLoader - Shutdown complete
2022-03-15 15:51:47,083 [Thread-3] INFO o.r.s.net.rtmp.RTMPMinaTransport - RTMP Mina Transport stop
2022-03-15 15:51:47,095 [Thread-5] INFO o.red5.server.plugin.PluginRegistry - Destroying and cleaning up 0 plugins
2022-03-15 15:52:17,087 [pool-7-thread-1] INFO o.r.server.service.ShutdownServer - One or more contexts didn't close in the allotted time