没遇到过,应该来说,localhost,127.0.0.1都是指向本机的,系统自动默认的,出现这种情况应该是操作系统本身的问题.

解决方案 »

  1.   

    你电脑中是否加过host文件,是不是把localhost绑定到别处了?
      

  2.   

    默认的 localhost == 172.0.0.1
    怪异 是不是 TOMCAT的问题 重新安装试试看
      

  3.   

    查一下host文件
    C:\WINDOWS\system32\drivers\etc\hosts
    里面如果有
    127.0.0.1       localhost
    那就是正常的
      

  4.   

    查一下host文件
    C:\WINDOWS\system32\drivers\etc\hosts
    里面如果有
    127.0.0.1       localhost
    那就是正常的
      

  5.   

    查一下host文件 
    C:\WINDOWS\system32\drivers\etc\hosts 
    里面如果有 
    127.0.0.1       localhost 
    那就是正常的
      

  6.   

    我检查了一下,正常!这是我的host文件的内容,请高手帮我看一下!
    # 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
      

  7.   

    机子本身问题吧..盗版的都会有N多的错..同一个tomcat 换个系统装起..运行也OK.
    你的这个原因是你指定了IP..把IP改成自动获取看看...
      

  8.   

    我的机器是直接接在路由器上的,而且是自动获取IP,是不是把Localhost 解析成了路由上了?