localhost的问题???

04-01-08 bluedolphine

我的机器在启动相应的服务器后,输入http://localhost:port/operation,提示信息如下:

The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://localhost/uddi

The following error was encountered:

Unable to determine IP address from host name for localhost

The dnsserver returned:

Name Error: The domain name does not exist.

This means that:

The cache was not able to resolve the hostname presented in the URL.

Check if the address is correct.

但键入http://127.0.0.1:port/operation,却可以打开指定的页面!!

我在system32的目录下查了"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 host

127.0.0.1 localhost

请问这种问题怎么解决???

wolverene
2004-01-09 14:13

关闭代理