共計 1138 個字符,預計需要花費 3 分鐘才能閱讀完成。
今天丸趣 TV 小編給大家分享一下電腦 hosts 文件沒有了如何解決的相關知識點,內容詳細,邏輯清晰,相信大部分人都還太了解這方面的知識,所以分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后有所收獲,下面我們一起來了解一下吧。
電腦沒有 hosts 文件解決辦法:
1、首先在系統桌面空白處右擊鼠標選擇新建、選擇文本文檔。
2、如果第一步操作正確那么就可以創建出一個如下圖一樣的文本文檔。
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:
#
# 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
完成以上標紅內容復制后在關閉 txt 文本的時候選擇保存內容。
4、回到系統桌面右擊 txt 文本然后選擇重命名,將新建文本文檔 txt 修改為 hosts!注意不要有任何多余的空格或者是符號。
5、將已經修改好的文檔直接從桌面拖到 C:\Windows\System32\drivers\etc 目錄中即可解決 hosts 文件沒有了的問題。
以上就是“電腦 hosts 文件沒有了如何解決”這篇文章的所有內容,感謝各位的閱讀!相信大家閱讀完這篇文章都有很大的收獲,丸趣 TV 小編每天都會為大家更新不同的知識,如果還想學習更多的知識,請關注丸趣 TV 行業資訊頻道。