数据恢复使用教程 >

win10hosts文件怎么恢复默认

win10hosts文件怎么恢复默认

更新日期:2023年04月19日

云骑士数据恢复

Windows 10系统中的hosts文件是一个重要的文件,它可以帮助用户控制网络访问,比如阻止某些网站的访问,或者将某些网站的域名指向本地的IP地址,以便访问本地的服务器。但是,如果用户不小心更改了hosts文件,可能会导致网络无法正常访问,那么,win10hosts文件怎么恢复默认呢?

首先,用户可以使用Windows自带的文本编辑器Notepad打开hosts文件,查看文件内容,如果发现文件内容被更改,可以将其删除,然后将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

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

替换完成后,保存hosts文件,重启电脑,即可恢复hosts文件的默认设置。

此外,用户还可以使用第三方软件来恢复hosts文件的默认设置,比如HostsMan,它可以帮助用户快速恢复hosts文件的默认设置,而无需手动编辑hosts文件。

总之,win10hosts文件恢复默认有两种方法,一种是手动编辑hosts文件,另一种是使用第三方软件。用户可以根据自己的需要选择合适的方法,以恢复hosts文件的默认设置。

上一篇 :误删文件恢复完乱码

Copyright © 2020-2022 数据恢复软件下载 版权所有 网站地图 | TXT地图 | 虎观百科 | TAG

联系
客服
扫一扫
添加客服微信
点击图片放大