電腦hosts文件如何修復(fù)_修復(fù)hosts文件的方法

電腦hosts文件如何修復(fù)_修復(fù)hosts文件的方法

時(shí)間:2020-01-08 09:39 作者: 來源:系統(tǒng)城

1. 掃描二維碼隨時(shí)看資訊

2. 請使用手機(jī)瀏覽器訪問:

手機(jī)查看
評論

windows系統(tǒng)中都有Hosts文件,它是一個(gè)沒有擴(kuò)展名的系統(tǒng)文件,Hosts文件有著可以屏蔽網(wǎng)站,重新定向網(wǎng)站域名等作用,那該文件損壞了要怎么修復(fù)呢?下面小編就來教大家修復(fù)hosts文件的方法。


具體方法如下:

1、將hosts文件復(fù)制到桌面,用記事本打開

電腦hosts文件如何修復(fù)_修復(fù)hosts文件的方法

2、刪除記事本的全部內(nèi)容,將以下內(nèi)容復(fù)制后放入文件然后保存:

# 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

電腦hosts文件如何修復(fù)_修復(fù)hosts文件的方法

3、將修改后的hosts文件放入c:\windows\system32\drivers\etc替換以前的hosts文件,修復(fù)成功!

電腦hosts文件如何修復(fù)_修復(fù)hosts文件的方法

上面就是關(guān)于電腦hosts文件如何修復(fù)的方法啦。有同樣情況的網(wǎng)友可以按照上面的步驟來操作哦。

< 上一篇

Win10 1909系統(tǒng)更新失敗提示0x80073701錯(cuò)誤代碼怎么辦

下一篇 >

win7共享局域網(wǎng)怎么設(shè)置?win7局域網(wǎng)共享文件夾設(shè)置方法

相關(guān)教程

網(wǎng)友評論

0

評論就這些咯,讓大家也知道你的獨(dú)特見解

以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)城立場

電腦軟件教程排行榜
系統(tǒng)合集
最近更新

系統(tǒng)

軟件

安卓

文章