電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

時間:2020-04-28 09:29 作者: 來源:系統(tǒng)城

1. 掃描二維碼隨時看資訊

2. 請使用手機瀏覽器訪問:

手機查看
評論

Hosts是一個沒有擴展名的系統(tǒng)文件,可以用記事本等抄工具打開,其作用就是將一些常用的網(wǎng)址域名與其對應(yīng)的IP地址建立一個關(guān)聯(lián)“數(shù)據(jù)庫”。但有的用戶卻反映說自己的電腦沒有hosts文件,不知道怎么解決,所以今天小編為大家整理的就是hosts文件沒了的處理辦法。


處理辦法如下:

1、首先在系統(tǒng)桌面空白處右擊鼠標(biāo)選擇新建、選擇文本文檔。

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

2、如果第一步操作正確那么就可以創(chuàng)建出一個如下圖一樣的文本文檔。

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

3、將一下內(nèi)容復(fù)制到創(chuàng)建好的文本文檔中:

# 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

#127.0.0.1 gilisoft.com

完成以上標(biāo)紅內(nèi)容復(fù)制后在關(guān)閉txt文本的時候選擇保存內(nèi)容。

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

4、回到系統(tǒng)桌面右擊txt文本然后選擇重命名,將新建文本文檔txt修改為hosts!注意不要有任何多余的空格或者是符號。

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

5、將已經(jīng)修改好的文檔直接從桌面拖到C:\Windows\System32\drivers\etc目錄中即可解決hosts文件沒有了的問題。

電腦沒有hosts文件怎么辦_hosts文件沒了的處理辦法

關(guān)于電腦沒有hosts文件的處理辦法就為大家分享到這里啦,有出現(xiàn)同樣情況的可以暗中上面的方法來解決哦。

< 上一篇

win7系統(tǒng)查看Adaptive Brightness服務(wù)描述的方法

下一篇 >

hosts文件如何修改_電腦怎么修改hosts文件

相關(guān)教程

網(wǎng)友評論

0

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

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

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

系統(tǒng)

軟件

安卓

文章