Windows 8.1中缺少主机文件

shuvroMithun

hosts在Windows 8.1中丢失了文件。我在中找不到它C:\Windows\System32\drivers\etc。 

以下是我在那个位置看到:hosts.icshosts.oldlmhosts.samnetworksprotocolservices

我该如何解决?

注册表编辑

缺省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] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在Windows 8上编辑主机文件

来自分类Dev

Windows 8中缺少安装.iso的选项

来自分类Dev

Wget 在 cmd windows 8 中缺少 URL

来自分类Dev

Windows 8-IE无法访问主机文件中列出的站点

来自分类Dev

在Windows 8中编程

来自分类Dev

Windows 8:缺少20 gig数据文件

来自分类Dev

在Windows 8应用中创建PDF文件

来自分类Dev

Windows 8“网络位置”中显示的文件

来自分类Dev

在Windows 8中修复.lnk文件

来自分类Dev

Windows 8和文件关联

来自分类Dev

在Windows 8中垂直平铺Windows

来自分类Dev

Windows Phone 8中的NavigationDrawer

来自分类Dev

Windows 8中的Curve TextBlock

来自分类Dev

Windows 8中的ArangoDB安装

来自分类Dev

Windows 8中的MakeCat失败

来自分类Dev

在Windows 8中处理字体

来自分类Dev

Windows 8中的睡眠模式

来自分类Dev

Windows 8中的曲线TextBlock

来自分类Dev

在Windows 8中标记

来自分类Dev

Windows Phone 8中的getrequeststream

来自分类Dev

Windows Phone 8中的NavigationDrawer

来自分类Dev

Windows 8中的奇怪字符

来自分类Dev

Windows 8中的SecurityCenter WMI

来自分类Dev

Windows 8中的Ubuntu外观

来自分类Dev

Windows 8中的Composer设置

来自分类Dev

如何通过主机文件从Windows 8访问Wamp Server到Windows XP?

来自分类Dev

从8和8.1版本开始,Windows SDK中是否缺少“ dxsdkver.h”头文件?

来自分类Dev

Windows 8 Embedded下缺少Netsh界面

来自分类Dev

Windows 8缺少21GB的空间