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

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文件的处理办法就为大家分享到这里啦。

61
67
0
44

相关资讯

  1. 1、画质惊人《乌合之众》获MMOSITE“最受期待手游奖”2113
  2. 2、腾讯精品专区也可以玩《都市飙车》今日重磅上线2656
  3. 3、《妖精的尾巴:启程》开启首测预约激活码等你来抢452
  4. 4、新版即将降临《舰姬收藏》高人气舰姬带你打海战1705
  5. 5、轮回不会输《全职高手》手游祝周泽楷生日快乐317
  6. 6、《英雄来挂机》花样百出竞技场这样玩4906
  7. 7、《罪恶之城》公会系统大揭秘公会大本营福利发不停2741
  8. 8、《合体三国》冬至活动来袭H5请你吃汤圆1175
  9. 9、《星盟冲突》玩家攻略征集活动成为大神的必经之路4629
  10. 10、《自由战歌》今日全渠道首发Q萌魔幻再掀狂潮1995
全部评论(0)
我也有话说
0
收藏
点赞
顶部