你是命令窗口启动还是后台启动? 后台启动的话你要去看日志. 而且你访问的时候出错日志里也会有记录. 如果日志里没有看到错误信息的话,很有可能是端口被占用了,看看你的日志tomcat启动的时候有没有这样的一句: Starting Coyote HTTP/1.1 on http-8080 如果这里不是8080而是别的什么端口的话,那就知道原因了.
对了 想起来了 还有一个可能 你看看你C:\WINDOWS\system32\drivers\etc\hosts文件里面是映射localhost所指向的IP地址.# Copyright (c) 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host127.0.0.1 localhost我的这样的就指向的是127.0.0.1
如果没有启动的错误,你用netstat -an在dos窗口看看
8080是不是别的程序占用了
清楚临时文件 work\Catalina 下的文件试试。
你是命令窗口启动还是后台启动? 后台启动的话你要去看日志.
而且你访问的时候出错日志里也会有记录.
如果日志里没有看到错误信息的话,很有可能是端口被占用了,看看你的日志tomcat启动的时候有没有这样的一句:
color=#FF0000]Starting Coyote HTTP/1.1 on http-8080[/color]
如果这里不是8080而是别的什么端口的话,那就知道原因了.
你是命令窗口启动还是后台启动? 后台启动的话你要去看日志.
而且你访问的时候出错日志里也会有记录.
如果日志里没有看到错误信息的话,很有可能是端口被占用了,看看你的日志tomcat启动的时候有没有这样的一句:
Starting Coyote HTTP/1.1 on http-8080
如果这里不是8080而是别的什么端口的话,那就知道原因了.
你看看你C:\WINDOWS\system32\drivers\etc\hosts文件里面是映射localhost所指向的IP地址.# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host127.0.0.1 localhost我的这样的就指向的是127.0.0.1
当时是因为我的JDK的问题,我把JDK删除了,所以访问不了了,不知道你的是什么问题,关注!
震惊了!16楼牛人。这都能想得到,是不是你把楼主给黑的呀?从实招来!哈哈