1. 0254游戏网首页
  2. 系统攻略

hosts文件没有了怎么办

hosts文件是存在于我们电脑中的一种功能型文件,今天小编为大家带来的就是电脑没有hosts文件解决办法!感兴趣的话就快来看看吧。

hosts文件问题解答大全

电脑没有hosts文件解决办法:

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

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

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

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

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

(以上就是hosts文件没有了怎么办的所有内容!如果对您的问题带来了帮助,请关注百科书我们会为你带来更多优秀文章)

声明: 我们致力于保护作者版权,注重分享,被刊用文章因无法核实真实出处,未能及时与作者取得联系,或有版权异议的,请联系管理员,我们会立即处理,本站部分文字与图片资源来自于网络,转载是出于传递更多信息之目的,若有来源标注错误或侵犯了您的合法权益,请立即通知我们(管理员邮箱:daokedao3713@qq.com),情况属实,我们会第一时间予以删除,并同时向您表示歉意,谢谢!