学习维修--Windows XP hosts文件不起作用的解决办法
2011-05-09 16:29
393 查看
[解决办法]:
最近有同仁反应hosts不起作用,在网上找了很久,只找到大部分都是下面这篇文章,但看了有问题的客户机,发现需要修正的设定是相同的,所以应该不是这个解决办法!
由于工作的需要,经常要修改C:/windows/system32/drivers/etc/hosts里面的域名指向。可是莫名其妙的是,自己
电脑上的 hosts文件修改了没有作用,google几天没有结果,郁闷。所幸的是还是找到了一篇高人的文章,原来是把
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Servic
es/Tcpip/Parameters里面的"DataBasePath"类型从"REG_SZ"修改为"REG_EXPAND_SZ"就OK了(需要
重新启动计算机),据说可能是安装MSN 7.0/7.5后类型被修改了,而微软对这个完全没有说明,FT。
全文如下[地址:http://www.mcse.ms/archive62-2006-1-1880791.html
]:
Open regedit and browse to
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Servic es/Tcpip/Parameters
Examine "DataBasePath" key in this node carefully.
If the path is set to %SystemRoot%/System32/drivers/etc and the key type is anything but REG_EXPAND_SZ, that is is your problem.
If the type is REG_SZ, edit the DatabasePath registry key and hardcode th entire path (remove the env variable)
e.g. c:/windows/system32/drivers/etc
or
delete the existing registry key and create a new key by the same name
(DataBasePath) of type REG_EXPAND_SZ and set the value to
%SystemRoot%/System32/drivers/etc
Files in etc dir should now be enabled.
Why did this happen to you? Most likely you installed MSN Messenger 7.0/7.5 which changed the type of this key.
Why did it do that, why didn't it inform you of what it has done? Ask Bill gates?
Is it documented anywere? Not to the best of my knowledge.
不过在查找的时候发现有一个人的回复是,“保证格式和权限正确”,这倒提醒了我,查看hosts文件的权限,果然这个文件没有集成这个文件夹的权限,于是修改权限,问题解决!
总结:对于Windows的系统参数,一个要格式正确外,一定要注意权限的设定,这个很容易被忽略掉。但问题在于这个文件从外部拷贝进来,为什么权限没有被文件夹自动覆盖掉,不解!
[问题]:我需要开启DNS Client,但带来了个问题,hosts不起作用,以前屏蔽的网都可以访问,关闭DNS Client就正常
转自:http://hi.baidu.com/houdelei250/blog/item/11d64538cc9f0efa3a87cecb.html
最近有同仁反应hosts不起作用,在网上找了很久,只找到大部分都是下面这篇文章,但看了有问题的客户机,发现需要修正的设定是相同的,所以应该不是这个解决办法!
由于工作的需要,经常要修改C:/windows/system32/drivers/etc/hosts里面的域名指向。可是莫名其妙的是,自己
电脑上的 hosts文件修改了没有作用,google几天没有结果,郁闷。所幸的是还是找到了一篇高人的文章,原来是把
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Servic
es/Tcpip/Parameters里面的"DataBasePath"类型从"REG_SZ"修改为"REG_EXPAND_SZ"就OK了(需要
重新启动计算机),据说可能是安装MSN 7.0/7.5后类型被修改了,而微软对这个完全没有说明,FT。
全文如下[地址:http://www.mcse.ms/archive62-2006-1-1880791.html
]:
Open regedit and browse to
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Servic es/Tcpip/Parameters
Examine "DataBasePath" key in this node carefully.
If the path is set to %SystemRoot%/System32/drivers/etc and the key type is anything but REG_EXPAND_SZ, that is is your problem.
If the type is REG_SZ, edit the DatabasePath registry key and hardcode th entire path (remove the env variable)
e.g. c:/windows/system32/drivers/etc
or
delete the existing registry key and create a new key by the same name
(DataBasePath) of type REG_EXPAND_SZ and set the value to
%SystemRoot%/System32/drivers/etc
Files in etc dir should now be enabled.
Why did this happen to you? Most likely you installed MSN Messenger 7.0/7.5 which changed the type of this key.
Why did it do that, why didn't it inform you of what it has done? Ask Bill gates?
Is it documented anywere? Not to the best of my knowledge.
不过在查找的时候发现有一个人的回复是,“保证格式和权限正确”,这倒提醒了我,查看hosts文件的权限,果然这个文件没有集成这个文件夹的权限,于是修改权限,问题解决!
总结:对于Windows的系统参数,一个要格式正确外,一定要注意权限的设定,这个很容易被忽略掉。但问题在于这个文件从外部拷贝进来,为什么权限没有被文件夹自动覆盖掉,不解!
[问题]:我需要开启DNS Client,但带来了个问题,hosts不起作用,以前屏蔽的网都可以访问,关闭DNS Client就正常
转自:http://hi.baidu.com/houdelei250/blog/item/11d64538cc9f0efa3a87cecb.html
相关文章推荐
- Windows XP hosts文件不起作用的解决办法
- android下修改hosts文件不起作用(无效)的解决办法
- windows 2000/XP中删除顽固文件的解决办法
- Android 修改HOSTS解决办法,android下修改hosts文件不起作用(无效)的解决办法
- windows xp chm文件打不开,一双击出现的是不能打开文件:mk:@MSITstore: 解决办法
- hosts文件不起作用的解决办法
- windows(win7,win8,xp)hosts文件找不到原因分析及解决方法
- windows(win7,win8,xp)hosts文件找不到原因分析及解决方法
- Windows xp hal.dll 文件丢失解决办法
- 解决Windows中修改hosts文件不起作用的问题
- hosts文件配置不生效的解决办法
- [转载]XP向windows 7传输文件时系统提示“服务器存储空间不足,无法处理此命令”故障的解决方法
- 番茄花园/ghostxp等XP系统不能文件和打印机共享还有魔兽不能建主机的解决办法
- python读文件读到windows休止符的问题及解决办法
- 安装OFFICE提示“windows installer服务不能更新一个或多个受保护的windows文件”解决办法
- python在windows中备份文件并压缩的解决办法
- JAVA学习提高之---- Java读取文件中含有中文的解决办法
- windows txt文件linux下乱码解决办法
- XP环境下C# 调用Pocess.start()时提示文件找不到的错误解决办法
- 2000/XP中无法删除文件的解决办法