hosts文件是電腦上用來關聯(lián)用戶所訪問的網(wǎng)址和IP對應解析的一個文件,有時候用戶需要修改這個文件,不過多數(shù)用戶是心有余而力不足,因為不知道hosts文件位置在哪?更別提什么修改了,莫慌,下面,小編告訴大伙win7 hosts文件位置在哪。
hosts文件是電腦上一個用來關聯(lián)你所訪問的網(wǎng)址和IP對應解析的一個文件,我們在某種特定場合可能要修改這個文件,在Windows系統(tǒng)中,hosts文件大小僅1K左右,而用戶又問了win7 hosts文件位置在哪?下面,小編就來跟大伙講解win7 hosts文件位置在哪。
win7 hosts文件位置在哪
Hosts文件位置在哪里?
windows xp/2003/vista/2008/7/8用戶HOSTS文件是在“c:\windows\system32\drivers\etc,注意這個文件一定是在系統(tǒng)盤,如果你的系統(tǒng)在D盤請自行修改前面的盤符。
host文件圖詳解-1
快速進入hosts文件夾的方法。同時按下Win+R組合鍵,調(diào)出運行欄。
win7圖詳解-2
在運行文本框輸入c:\windows\system32\drivers\etc,點擊確定按鈕。
文件位置圖詳解-3
Hosts文件怎么修復?
將hosts文件復制到桌面,用記事本打開!
host圖詳解-4
刪除記事本的全部內(nèi)容,將以下內(nèi)容復制后放入文件然后保存:
# 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
win7圖詳解-5
將修改后的hosts文件放入c:\windows\system32\drivers\etc替換以前的hosts文件,修復成功!
host文件圖詳解-6
以上就是win7 hosts文件位置在哪的講解了。
雖然說看過教程發(fā)現(xiàn)很簡單,但是很多用戶第一次不知道怎么操作。還有一個很重要的是,一定要以一定要以管理員身份運行記事本程序,不然是無法保存的。
掃一掃 生活更美好