hosts文件在哪 hosts文件修复方法(hosts文件如何修复)
hosts文件是一個沒有擴展名的系統文件,它的主要作用是能加快域名解析,還可以屏蔽網站等。那么遇到hosts文件損壞或者被惡意篡改了怎么辦?下面一起來看看hosts文件修復方法。
hosts文件修復方法:
1、首先我們需要找到hosts文件在哪里,我們依次打開c:\windows\system32\drivers\etc項,如下圖所示:
2、你也可以按組合鍵win+r打開運行,輸入c:\windows\system32\drivers\etc按回車,如下圖所示:
3、找到hosts文件后將其復制到桌面,然后用筆記本打開,如下圖所示:
4、刪除記事本的全部內容,將以下內容復制到文件中然后保存,如下圖所示:
# 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
5、然后將修改后的hosts文件放到c:\windows\system32\drivers\etc來替換以前的hosts文件,即可完成修復。
以上就是hosts文件修復方法,有遇到hosts文件受損想修復的朋友不妨按照上面方法進行操作,希望對大家有幫助。
總結
以上是生活随笔為你收集整理的hosts文件在哪 hosts文件修复方法(hosts文件如何修复)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用Java EE的ManagedExe
- 下一篇: 系统垃圾bat怎么清理 Win7一键清理