hosts文件被我改成应用程序(hosts.exe)怎么还原

2024-12-04 16:26:29
推荐回答(2个)
回答(1):

新建一个TXT文本文芹握橡皮毕档.输入下面内容:
# Copyright (c) 1993-1999 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

127.0.0.1 localhost

保存退出

前面带#号的是说明内容,可要可不要
后面127.0.0.1 localhost 是一个映射.

再把新建的文档改名为 hosts 注意:没有后缀名
再把它放在原来的嫌旁位置就好了.
其实有没有这个文件都不影响上网.它的作用只是一个映射作用,加速对网站的连接而已.

回答(2):

把.exe删掉