电脑hosts文件没有了如何解决

58次阅读
没有评论

共计 1138 个字符,预计需要花费 3 分钟才能阅读完成。

今天丸趣 TV 小编给大家分享一下电脑 hosts 文件没有了如何解决的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解一下吧。

电脑没有 hosts 文件解决办法:

1、首先在系统桌面空白处右击鼠标选择新建、选择文本文档。

2、如果第一步操作正确那么就可以创建出一个如下图一样的文本文档。

3、将一下内容复制到创建好的文本文档中:

# 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

#127.0.0.1 gilisoft.com

完成以上标红内容复制后在关闭 txt 文本的时候选择保存内容。

4、回到系统桌面右击 txt 文本然后选择重命名,将新建文本文档 txt 修改为 hosts!注意不要有任何多余的空格或者是符号。

5、将已经修改好的文档直接从桌面拖到 C:\Windows\System32\drivers\etc 目录中即可解决 hosts 文件没有了的问题。

以上就是“电脑 hosts 文件没有了如何解决”这篇文章的所有内容,感谢各位的阅读!相信大家阅读完这篇文章都有很大的收获,丸趣 TV 小编每天都会为大家更新不同的知识,如果还想学习更多的知识,请关注丸趣 TV 行业资讯频道。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计1138字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)