輸入127.0.0.1或localhost總是跳轉到一個網址導航,怎麼辦
進入C:\WINDOWS\system32\drivers\etc,右鍵使用記事本開啟hosts,看看127。0。0。1或者localhost是不是被指向了網址導航,如果指向了就把那兩行刪了
您好,這個是由於系統的hosts被篡改導致的,因為瀏覽器在瀏覽網頁時會優先使用本地hosts對域名進行解析,所以這個檔案一旦出現錯誤將會導致原網頁開啟時跳轉、不能正常開啟等問題。解決方法:將現有hosts檔案替換成預設檔案即可。hosts檔案一般在c:\windows\system32\drivers\etc\目錄下。修復方法:只需將hosts檔案用記事本開啟,將裡面的內容全部刪除然後替換成
# 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
即可。