localhost的問題???

bluedolphine發表於2004-01-08
我的機器在啟動相應的伺服器後,輸入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

請問這種問題怎麼解決???

相關文章