hosts文件删除了怎么恢复 hosts文件恢复教程

时间:2023-05-22 14:59:51 

hosts文件能够帮助用户将常用的网址域名与其对应的IP地址建立一个关联“数据库”,但是最近有用户发现自己的hosts文件被删除了,这该怎么办? 不要着急,下面小编就来介绍一下hosts文件的恢复方法。

一、给etc目录授权

进入c:\windows\system32\drivers\etc

选中etc目录,右键-属性-高级

hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程
hosts文件删除了怎么恢复 hosts文件恢复教程

二、恢复hosts文件

进入目录C:\Windows\System32\drivers\etc

新建hosts.txt,将下面内容复制到hosts.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

然后通过重命名的方式去掉后缀,变为hosts

hosts文件删除了怎么恢复 hosts文件恢复教程

标签:hosts文件,hosts文件删除了怎么恢复
0
投稿

猜你喜欢

  • WPS 如何快速将表格(Excel)中的数据分列?

    2023-09-13 23:31:57
  • Win11启动不了英雄联盟怎么办?Win11启动不了英雄联盟的解决方法

    2022-12-19 12:25:51
  • 如何在几秒钟内退出所有 Mac 应用程序?

    2023-11-12 23:41:31
  • PPT文本框按路径排列 PPT如何实现文本框按路径排列

    2023-11-25 14:08:26
  • win11安装权限怎么设置?win11安装权限设置教程

    2022-08-14 10:12:48
  • Win10到底啥什么时候正式发布?微软Build 2015未公布确切上市时间

    2022-12-06 05:34:53
  • 在wps演示中怎样使用文本占位符

    2023-06-29 15:10:54
  • Office365和Office2019哪个好?

    2023-11-08 13:25:22
  • usbeam hosts editor怎么加速游戏

    2022-02-13 01:18:18
  • 文字江湖:萧远山巧用WPS去底纹 少林寺清誉尽失

    2022-06-19 12:29:13
  • ​电脑版WPS演示文稿调整思维导图的边框类型

    2023-09-09 00:42:54
  • 如何在Mac电脑中不通过访达打开文件夹?

    2022-02-15 06:44:59
  • 通过Vista系统自带命令提示符结束恶意进程

    2022-12-12 16:59:31
  • word显示页间空白如何隐藏页间空白

    2023-08-21 03:10:34
  • WPS演示制作课件教程:修改图形

    2023-04-22 05:34:38
  • Counta函数真好用,自动编号、排序、统计数据等不在话下

    2023-06-21 13:48:00
  • 用u盘装系统的操作全程图解

    2022-03-12 14:33:02
  • 如何在回收站中恢复丢失数据呢?

    2022-10-12 08:45:35
  • excel表格调整列宽的方法

    2022-06-04 00:54:16
  • Microsoft OneNote 教程「16」,如何在 OneNote 中裁剪插入的图片?

    2023-03-18 07:12:26
  • asp之家 电脑教程 m.aspxhome.com