输入127.0.0.1或localhost总是跳转到一个网址导航,怎么办
答案:2 悬赏:60
解决时间 2021-02-10 08:55
- 提问者网友:伪情浪人
- 2021-02-10 02:16
输入127.0.0.1或localhost总是跳转到一个网址导航,怎么办
最佳答案
- 二级知识专家网友:桑稚给你看
- 2021-02-10 02:57
进入C:\WINDOWS\system32\drivers\etc,右键使用记事本打开hosts,看看127.0.0.1或者localhost是不是被指向了网址导航,如果指向了就把那两行删了
全部回答
- 1楼网友:无字情书
- 2021-02-10 04:22
您好,这个是由于系统的hosts被篡改导致的,因为浏览器在浏览网页时会优先使用本地hosts对域名进行解析,所以这个文件一旦出现错误将会导致原网页打开时跳转、不能正常打开等问题。解决方法:将现有hosts文件替换成默认文件即可。hosts文件一般在c:\windows\system32\drivers\etc\目录下。修复方法:只需将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
即可。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯