我刚刚在Windows服务器上安装了red5,现在尝试在5080访问它的主页。
我在访问时看到输出
[ERROR] [http-m.y.i.p-5080-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint - java.net.SocketException: Invalid argument: no further information
at sun.nio.ch.Net.setIntOption0(Native Method) ~[na:1.7.0_25]
at sun.nio.ch.Net.setSocketOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketChannelImpl.setOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketAdaptor.setIntOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketAdaptor.setTrafficClass(Unknown Source) ~[na:1.7.0_25]
at org.apache.tomcat.util.net.SocketProperties.setProperties(SocketProperties.java:184) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:1089) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:1314) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25]
[ERROR] [http-m.y.i.p-5080-Acceptor-0] org.apache.tomcat.util.net.NioEndpoint - java.net.SocketException: Invalid argument: no further information
at sun.nio.ch.Net.setIntOption0(Native Method) ~[na:1.7.0_25]
at sun.nio.ch.Net.setSocketOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketChannelImpl.setOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketAdaptor.setIntOption(Unknown Source) ~[na:1.7.0_25]
at sun.nio.ch.SocketAdaptor.setTrafficClass(Unknown Source) ~[na:1.7.0_25]
at org.apache.tomcat.util.net.SocketProperties.setProperties(SocketProperties.java:184) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at org.apache.tomcat.util.net.NioEndpoint.setSocketOptions(NioEndpoint.java:1089) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:1314) ~[tomcat-coyote-6.0.36.jar:6.0.36]
at java.lang.Thread.run(Unknown Source) ~[na:1.7.0_25]
strtup时没有错误。
我在互联网上发现,解决方案是设置HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DisableUserTOSSetting=0
并重新启动计算机。
但我无法重启机器,因为它正在使用中。
此错误的性质是什么?
有没有办法在Windows Server上安装red5
而无需重新启动它?
可能降级Java或red5?
答案 0 :(得分:0)
似乎正在设置套接字选项,但我不确定会发生什么或为什么。我们没有为我知道的tomcat设置任何东西。您可以尝试在jee-container.xml中切换连接器
Blocking I/O:
<constructor-arg type="java.lang.String" value="org.apache.coyote.http11.Http11Protocol" />
Non-blocking I/O:
<constructor-arg type="java.lang.String" value="org.apache.coyote.http11.Http11NioProtocol" />