日韩精品中文字幕第1页,欧美日韩中文一区二区,日韩成人午夜精品,中文字幕一区日韩电影

大學校園網

大學生活網 > 大學生學習 > 計算機學習

hosts文件修復方法

hosts文件是一個沒有擴展名的系統文件,其主要作用是加快域名解析,讓系統快速打開網頁。當用戶輸入一個網址后,系統會從hosts文件中尋找對應的IP地址,然后瀏覽器才能打開網頁。如果碰到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文件不妨參考以上步驟嘗試著操作解決,希望可以幫助到大家。

主站蜘蛛池模板: 保德县| 临桂县| 神池县| 托里县| 万源市| 玛多县| 武强县| 工布江达县| 铜山县| 红桥区| 资中县| 漳平市| 达日县| 建始县| 云林县| 美姑县| 安达市| 澄江县| 香河县| 五寨县| 日照市| 双流县| 玉龙| 永泰县| 邓州市| 广宗县| 遂平县| 吉安市| 兴业县| 惠州市| 射洪县| 龙里县| 巫溪县| 贵阳市| 金乡县| 周口市| 邯郸市| 元朗区| 汨罗市| 象山县| 南投市|