hosts文件打不开总提示拒绝访问,怎么解决?

hosts文件打不开总提示拒绝访问,怎么解决?,第1张

这都是Vista安全机制UAC造成的,同时在一定作用下防止病毒篡改hosts文件

你可以在Vista系统中使用以下方法解决

1.在“开始”菜单

->“搜索”中输入notepad

,然后使用Ctrl+Shift+Enter快捷键即可调用具有系统管理员权限的“记事本”编辑器。

2.在“开始”菜单中单击“所有程序”,单击“附件”,右键单击“记事本”,然后单击“以管理员身份运行”。

hosts文件的路径是

C:\Windows\System32\drivers\etc\

hosts

(C:\

为安装Windows的分区)

假如是WIN系统,可试试:

1. 先找出HOSTS位置 C:\WINDOWS\system32\drivers\etc

2. 用记事本打开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


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/8571156.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-18
下一篇 2023-04-18

发表评论

登录后才能评论

评论列表(0条)

保存