美文网首页电脑知识
hosts文件为空怎么办?

hosts文件为空怎么办?

作者: 阿佳娜 | 来源:发表于2018-05-22 13:54 被阅读1次

用户HOSTS文件是在“c:\windows\system32\drivers\etc

打开记事本,以管理员身份打开hosts文件

打开后hosts文件是空的,不用担心,原本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.

#

这样就好了~

相关文章

网友评论

    本文标题:hosts文件为空怎么办?

    本文链接:https://www.haomeiwen.com/subject/ofvhjftx.html