WampServer主机文件未退出
我的wamp服务器在安装后出现问题。但是,我的wamp服务器仍然正常,但我可以知道如何更正此错误吗 错误如下: 文件:C:/WINDOWS/system32/drivers/etc/hosts不可写 文件C:/WINDOWS/system32/drivers/etc/hosts不存在WampServer主机文件未退出,wampserver,Wampserver,我的wamp服务器在安装后出现问题。但是,我的wamp服务器仍然正常,但我可以知道如何更正此错误吗 错误如下: 文件:C:/WINDOWS/system32/drivers/etc/hosts不可写 文件C:/WINDOWS/system32/drivers/etc/hosts不存在 我可以知道如何更正吗?检查此路径,您的主机文件可能丢失。只需按照以下步骤解决问题 在桌面上创建新的文本文件并将其重命名为“主机”。不要添加扩展名 用任何文本编辑器打开它,粘贴下面的代码并保存它 #版权所有(c)1
我可以知道如何更正吗?检查此路径,您的主机文件可能丢失。只需按照以下步骤解决问题
C:/WINDOWS/system32/drivers/etc
文件夹有关更多详细信息,请在此处查看Microsoft支持文章:您可能有一个防火墙来保护主机文件,现在有很多防火墙。转到您的防火墙,为wampserver设置一个例外,或者只是暂时从防火墙的保护中删除主机文件,这在大多数保护主机文件的防火墙中也是可能的。哦,仅供参考,主机文件属于Windows,不属于wampserver谢谢您的回答,我可以知道如何为wampserver设置异常或从防火墙保护中删除主机文件吗?目前我正在使用此方法为我创建主机文件,错误已经解决,但这是解决此问题的正确方法吗? # Copyright (c) 1993-2006 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 handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost