Win7系统hosts文件如何修改?


由于工作的关系,或者安装一些软件,需要修改hosts文件,hosts文件的作用是将一些常用的网址域名与其对应的IP地址建立一个关联。不过很多用户并不知道如何修改hosts文件,本文就给大家详细介绍Win7系统修改hosts文件的方法,在介绍修改之前,先告诉大家如何查找hosts文件。

查找hosts文件

1、首先,打开桌面的我的电脑,或者是通过开始菜单进入到我的电脑;

2、之后,进入到C:\Windows\System32\drivers\etc目录下,这个时候会看到目录下有一个hosts文件,这个就是所谓的hosts文件;

3、在xp以及03系统下hosts文件的路径有点不同,这两个系统需要进入到C:\Windows\System32\drivers\etc目录下,即可找到对应的hosts文件。(默认位置为%SystemRoot%\system32\drivers\etc\)

修改hosts文件

1、进入到该目录下之后,双击打开该文件。如下图,弹出打开方式窗口,选择以记事本打开。

2、以文本的方式打开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


上一篇:Win7总提示“Dcom Server Process Launcher服务意外终止”如何办?

下一篇:Win7浏览器网页提示“是否只查看安全传送的网页内容”如何办?


hosts文件修改后无法保存 hosts文件修改 hosts文件怎么修改
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器