-
电脑hosts文件如何修复_修复hosts文件的方法
- 作者:杨爽喻 分类:电脑技术 发布时间:2021-06-24 10:08:00
windows系统中都有Hosts文件,它是一个没有扩展名的系统文件,Hosts文件有着可以屏蔽网站,重新定向网站域名等作用,那该文件损坏了要怎么修复呢?下面小编就来教大家修复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#...
windows系统中都有Hosts文件,它是一个没有扩展名的系统文件,Hosts文件有着可以屏蔽网站,重新定向网站域名等作用,那该文件损坏了要怎么修复呢?下面小编就来教大家修复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文件,修复成功!
上面就是关于电脑hosts文件如何修复的方法啦。有同样情况的网友可以按照上面的步骤来操作哦。
猜您喜欢
- Edge浏览器提示:文件类型危险,如何..2024-04-07
- 寻找鼠标驱动:揭秘你不知道的电脑世..2024-04-05
- 解锁Windows电脑时间设置,让你的电脑..2024-04-05
- 掌握这个技巧,轻松实现Windows电脑截..2024-04-05
- Windows帮助和支持顽固关闭,你的电脑..2024-04-05
- Windows PowerShell文件夹可删除吗?解密一..2024-04-04
相关推荐
- 系统城推出机顶盒cpu排行_2020机顶盒..2021-07-09
- 电脑右键复制粘贴不能用如何解决?教..2021-07-27
- win7笔记本电脑无法连接无线网络的原..2023-02-10
- 五笔字根表键盘大全..2021-02-18
- 如何安装虚拟机|虚拟机安装win系统详..2017-10-12
- word文档中设置字体的快捷键是什么,..2021-01-04