论坛: 电脑门诊 标题: 关于不能访问localhost的问题 复制本贴地址    
作者: linken1999 [linken1999]    论坛用户   登录
我装了IIS5后本来可以访问localhost和127.0.0.1的,但是xp自动升级后就不能访问localhost,只能访问127.0.0.1
我该怎么办呢?

地主 发表时间: 05-02-04 23:01

回复: Aoming [aoming]   版主   登录
进入C:\WINDOWS\system32\drivers\etc
修改hosts文件,加一条
127.0.0.1      localhost

eg:
-----------------------
# 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
----------------------------------

B1层 发表时间: 05-02-04 23:25

回复: linken1999 [linken1999]   论坛用户   登录
谢谢
我试下

B2层 发表时间: 05-02-04 23:54

论坛: 电脑门诊

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号