我hosts
在Windows 8.1中丢失了文件。我在中找不到它C:\Windows\System32\drivers\etc
。
以下是我在那个位置看到:hosts.ics
,hosts.old
,lmhosts.sam
,networks
,protocol
和services
。
我该如何解决?
缺省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
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
(行开头#
是hosts
文件中的注释。)
如果文件不存在,则会在Windows事件日志中记录启动时的事件,但不会停止任何工作。
您可以简单地创建一个名为的新的空文本文件hosts
(请参阅Windows 8上的编辑主机文件),如果要添加自己的自定义条目,只需将其添加到其中(如默认hosts
文件中的示例注释所示,但#
该行的开头没有)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句