asp.net在浏览器中查看 一直加载 无法显示
除了把地址栏里面的localhost改成127.0.0.1。有别的方法可以完全解决吗?之前完全不会。...
除了把地址栏里面的localhost改成127.0.0.1 。
有别的方法可以完全解决吗?之前完全不会。 展开
有别的方法可以完全解决吗?之前完全不会。 展开
1个回答
展开全部
如果是改成127.0.0.1能显示的话
将如下路径C:\WINDOWS\system32\drivers\etc中的hosts改成如下
# 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
???????????????????????????????
如果不行的话就改成localhost 127.0.0.1
将如下路径C:\WINDOWS\system32\drivers\etc中的hosts改成如下
# 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
???????????????????????????????
如果不行的话就改成localhost 127.0.0.1
追问
# Copyright (c) 1993-2009 Microsoft Corp.
# 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
#0.0.0.0 biz5.sandai.net
怎么改??请指明,谢谢。
追答
# 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
#0.0.0.0 biz5.sandai.net
127.0.0.1 localhost
这样试试,以为你的127.0.0.1可以localhost不可以,随意他俩的映射关系你自己改一下吧,之前我就遇到过这个问题,就是这样改的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询