Win7的系统,昨天晚上都还好好的,今天早上就不行了。 问题是这样出现的:当我打开vs2010调试web项目时,浏览器就是一个白板,网页出不来,而且CPU占用100%,当时我还以为是项目的问题,当我打开一个新的项目再进行调试的时候,还是同样的症状。 于是我想到可能是IIS的问题,当我在浏览器地址栏输入:http://localhost的时候,本以为可以看见熟悉的IIS7界面,但是我没有看见,而是面临同样的问题——网页白板,CPU占用100%。 我又弄了好久,发现用127.0.0.1能正常访问上去,但是用localhost还是不行,一访问CPU就100%,电脑就直接卡死了。 我重装了IIS,还是不行,有没有谁遇到过这样的情况,各位大虾帮帮忙,小弟感激不进。 |
下面是我的hosts文件
# Copyright (c) 1993-2009 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
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
查看host文件是否正确
iis设置下,不分配ip就是localhost
谢谢老大。。。。。我也遇到了同样的问题。。。。现在解决了。。。。感谢各位。。。。