传奇部落

Windowns系统中的host文件位置在哪?怎么修复host文件教程

[复制链接]
发表于 2023-3-11 13:57:18 | 显示全部楼层 |阅读模式
host文件是什么?
host文件是一个没有扩展名的系统文件,它的主要作用是可以加快域名解析,还可以屏蔽某些网站!

host文件位置在哪?
host文件的位置在“c:\windows\system32\drivers\etc的路径下


012828wllvl3rnlll3mdy1.jpg

host文件怎么修复?

host文件出错了,该怎么进行修复呢?具体解决方法如下:找到C盘的host文件用记事本打开,将原host文件内容替换为下面的内容,然后保存即可!必要时再重启一下电脑试试!
# 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



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

展开

Archiver|小黑屋|网站地图|皖ICP备18020244号-7|传奇部落

GMT+8, 2024-4-29 11:06 , Processed in 皖公网安备:34112402000394号 0.113227 second(s), 29 queries , Gzip On.