我下载了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
答案 0 :(得分:1)
上面显示的日志文件片段不会显示任何错误。尝试访问端口8040上的应用程序时是否收到任何错误?您是否尝试过执行netstat并在端口8040上执行grep?