我的wamp服务器安装后出现问题。但是,我的Wamp服务器仍然正常运行,但是我可以知道如何纠正此错误吗?
错误如下:
文件C:/ WINDOWS / system32 / drivers / etc / hosts不可写
文件C:/ WINDOWS / system32 / drivers / etc / hosts不存在
我可以知道如何纠正它吗?
答案 0 :(得分:0)
检查此C:/WINDOWS/system32/drivers/etc
路径,可能是您的主机文件丢失。只需按照以下步骤解决问题即可。
# 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
C:/WINDOWS/system32/drivers/etc
文件夹。WAMP
(如果正在运行),然后重新启动。该错误将消失。有关更多详细信息,请在此处查看Microsoft支持文章:https://support.microsoft.com/en-us/help/972034/how-to-reset-the-hosts-file-back-to-the-default