栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Windows

Win7系统hosts文件怎么修改?

Windows 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Win7系统hosts文件怎么修改?

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

  查找hosts文件

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

  2、之后,进入到“C:WindowsSystem32driversetc”目录下,这个时候会看到目录下有一个“hosts”文件,这个就是所谓的hosts文件;

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

  修改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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/535914.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号