網站首頁 教育 學前教育 精緻生活 飲食養生 命理 科普教育 金融 歷史 影視 數碼 熱門資訊
當前位置:生活百科站 > 數碼 > 

hosts檔案沒有了怎麼辦

欄目: 數碼 / 釋出於: / 人氣:7.71K

hosts檔案是存在於我們電腦中的一種功能型檔案,今天小編為大家帶來的就是電腦沒有hosts檔案解決辦法!感興趣的話就快來看看吧。

hosts檔案沒有了怎麼辦

1、首先在系統桌面空白處右擊滑鼠選擇新建、選擇文字文件。

hosts檔案沒有了怎麼辦 第2張

2、如果第一步操作正確那麼就可以創建出一個如下圖一樣的文字文件。

hosts檔案沒有了怎麼辦 第3張

3、將一下內容複製到建立好的文字文件中:

# 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:

#

# # source server

# # x client host

# localhost name resolution is handled within DNS itself.

# localhost

#::1 localhost

#

完成以上標紅內容複製後在關閉txt文字的時候選擇儲存內容。

hosts檔案沒有了怎麼辦 第4張

4、回到系統桌面右擊txt文字然後選擇重新命名,將新建文字文件txt修改為hosts!注意不要有任何多餘的空格或者是符號。

hosts檔案沒有了怎麼辦 第5張

5、將已經修改好的文件直接從桌面拖到C:WindowsSystem32driversetc目錄中即可解決hosts檔案沒有了的問題。

hosts檔案沒有了怎麼辦 第6張

Tags:hosts 檔案