gpt4 book ai didi

Tomcat 6 无法访问应用程序

转载 作者:行者123 更新时间:2023-11-28 23:06:03 25 4
gpt4 key购买 nike

我下载了tomcat 6,将server.xml上的端口改为8040,然后启动tomcat。通过访问 localhost:8040、localhost:8040/manager/html 和其他应用程序,我没有看到任何内容。我之前安装了 jdk 1.7 和 tomcat 7 作为服务。但随后删除了 tomcat 7,我使用的是 tomcat 6 的压缩版本。tomcat 7 的安装程序版本运行良好。

当tomcat启动时,我看到以下内容

    Feb 17, 2012 10:16:13 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
Feb 17, 2012 10:16:13 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], r
andom [true].
Feb 17, 2012 10:16:14 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8040
Feb 17, 2012 10:16:14 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Feb 17, 2012 10:16:14 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2551 ms
Feb 17, 2012 10:16:15 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 17, 2012 10:16:15 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Feb 17, 2012 10:16:15 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor host-manager.xml
Feb 17, 2012 10:16:15 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor manager.xml
Feb 17, 2012 10:16:15 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Feb 17, 2012 10:16:15 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Feb 17, 2012 10:16:16 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Feb 17, 2012 10:16:16 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8040
Feb 17, 2012 10:16:16 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Feb 17, 2012 10:16:16 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1507 ms

netstat 的输出

    C:\Windows\System32>netstat

Active Connections

Proto Local Address
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:12080
TCP 127.0.0.1:49167
TCP 127.0.0.1:49168
TCP 127.0.0.1:62994
TCP 127.0.0.1:63002
TCP 127.0.0.1:63008
TCP 127.0.0.1:63023
TCP 127.0.0.1:63029
TCP 127.0.0.1:63039
TCP 127.0.0.1:63041
TCP 127.0.0.1:63044
TCP 192.168.1.5:60959
TCP 192.168.1.5:60982
TCP 192.168.1.5:62995
TCP 192.168.1.5:62996
TCP 192.168.1.5:63035
TCP 192.168.1.5:63036
TCP 192.168.1.5:63038
TCP 192.168.1.5:63040
TCP 192.168.1.5:63043
TCP 192.168.1.5:63045
TCP [::1]:1521
TCP [::1]:49177

用 netstat -a -n 看起来像这样

  TCP    0.0.0.0:8040           0.0.0.0:0              LISTENING   

最佳答案

上面显示的日志文件片段没有显示任何错误。尝试访问端口 8040 上的应用程序时是否收到任何错误?您是否尝试过在端口 8040 上执行 netstat 和 grep?

关于Tomcat 6 无法访问应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9338369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com