计算机没有hosts文件怎么办?

时间:2022-10-03 23:00:38 

hosts文件是一个没有扩展名的系统文件,主要功能就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”。但是有用户反应说自己的电脑里没有hosts文件,这该怎么办?下面我们就来看看怎么处理。

处理办法:

1、首先在系统桌面空白处右击鼠标选择新建、选择文本文档。

计算机没有hosts文件怎么办?

2、如果第一步操作正确那么就可以创建出一个如下图一样的文本文档。

计算机没有hosts文件怎么办?

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文本的时候选择保存内容。

计算机没有hosts文件怎么办?

4、回到系统桌面右击txt文本然后选择重命名,将新建文本文档txt修改为hosts!注意不要有任何多余的空格或者是符号。

计算机没有hosts文件怎么办?

5、将已经修改好的文档直接从桌面拖到C:\Windows\System32\drivers\etc目录中即可解决hosts文件没有了的问题。

计算机没有hosts文件怎么办?

关于计算机没有hosts文件的处理办法就为大家分享到这里啦。

标签:hosts文件
0
投稿

猜你喜欢

  • Win11弹窗无法关闭怎么办?

    2022-07-04 19:27:01
  • 石大师工具怎么重装win11系统?最完整的安装方法分享给你!

    2022-08-15 15:21:40
  • Win7系统笔记本电脑提示未检测到电池的解决方法

    2022-08-18 00:22:21
  • Win8.1系统开机后提示SGTool.exe损坏的映像怎么办

    2023-04-26 11:18:20
  • wps文字怎样输入高阶音符

    2022-09-09 16:36:52
  • excel 如何最快核对两列数据的不同

    2022-01-15 10:40:39
  • iOS 13 教程:如何在向某人发送信息时触发提醒事项?

    2023-03-19 13:39:58
  • 教你win10电脑锁屏设置方法

    2022-08-26 19:49:14
  • 苹果Mac如何使用iMovie剪辑添加预告片字幕?

    2023-10-16 00:47:28
  • 如何将Mac镜像到电视?连接与断开Mac镜像到电视方法

    2023-09-16 13:43:33
  • excel2010双击有什么作用?

    2022-11-30 12:16:44
  • 老电脑无法升级Win11 老电脑升级Win11的方法介绍

    2022-12-16 04:25:10
  • 如何在 iOS 14 中将外部存储连接到 iPad?

    2022-07-11 10:59:08
  • excel怎么使用LOWER函数

    2023-09-03 13:50:18
  • 微软Win10 Insider壁纸下载:骑独角鲸、恐龙的忍者猫壁纸

    2022-12-18 21:27:06
  • 系统中的待机丢失了应该怎么办

    2022-03-20 14:36:49
  • Win10如何安装IE10浏览器?Win10安装IE10浏览器的方法

    2023-04-17 23:12:35
  • word如何拆分窗口?word拆分窗口方法介绍

    2022-08-08 05:54:12
  • Win10没有用户和组怎么办?

    2023-01-21 08:28:22
  • WPS excel合并表格计算的方法

    2022-11-08 00:14:34
  • asp之家 电脑教程 m.aspxhome.com