时间:2022-11-13来源:www.pcxitongcheng.com作者:电脑系统城
电脑的hosts文件该如何修复呢?其实这个操作非常的简单,今天小编整理了相关的教程,下面跟我一起来看看吧。

1、将hosts文件复制到桌面,用记事本打开

2、删除记事本的全部内容,将以下内容复制后放入文件然后保存:
# 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

3、将修改后的hosts文件放入c:\windows\system32\drivers\etc替换以前的hosts文件,修复成功!

2026-10-09
傲梅分区助手如何进行硬盘测速?2026-10-09
傲梅分区助手教你如何使用克隆硬盘到SSD或HDD?2026-10-09
傲梅分区助手教你如何快速将系统迁移到新硬盘?3种数据迁移方法!为什么需要调整分区大小?通常我们购买一台电脑后,硬盘已由厂商或者是装机人员分好区,并装好系统。有的默认只分了一个区,资源管理器只能访问C分区;或者有的可能将硬盘分为了C,D两...
2026-10-09
C盘空间怎么扩大?怎样把C盘的容量扩大?你可以试试下面这4个方法,它们可以轻松帮你解决这个问题。方法1. 使用DiskPart扩展C盘DiskPart是一个Windows系统自带的程序,它通过脚本或...
2026-10-07