Tomcat中的NIO连接器 [英] NIO Connector in Tomcat
本文介绍了Tomcat中的NIO连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过配置server.xml文件在Tomcat 6.0中启用NIO Connector,但我得到 Firefox无法在localhost:8081建立与服务器的连接。每次输入 localhost:8081 时都会显示浏览器。
I'm trying to enable NIO Connector in Tomcat 6.0 by configuring server.xml file, but I'm getting Firefox can't establish a connection to the server at localhost:8081. in the browser whenever I type localhost:8081.
这就是我在Tomcat 6.0中配置NIO连接器的方法。我可以知道这是什么问题吗?
This is how I've configured NIO connector in Tomcat 6.0. May I know what's the problem?
<Connector connectionTimeout="20000" port="8081" protocol="org.apache.
coyote.http11.Http11NioProtocol" redirectPort="8443"/>
推荐答案
我在服务器上试过你的标签。
I've tried your tag on my server.
你的Connector标签在 apache。
和 coyote $ c $之间有一个不必要的空格。 c>
删除它或尝试下面的那个。
Your Connector tag has one unnecessary space between apache.
and coyote
Remove it or try with the one below.
<Connector connectionTimeout="20000" port="8081" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/>
它应该启动。
这篇关于Tomcat中的NIO连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文