Win7系统hosts文件怎么修改?
时间:2023-07-14 05:52:58
由于工作的关系,或者安装一些软件,需要修改hosts文件,hosts文件的作用是将一些常用的网址域名与其对应的IP地址建立一个关联。不过很多用户并不知道如何修改hosts文件,本文就给大家详细介绍Win7系统修改hosts文件的方法,在介绍修改之前,先告诉大家如何查找hosts文件。
查找hosts文件
1、首先,打开桌面的“我的电脑”,或者是通过开始菜单进入到我的电脑;
![Win7系统hosts文件怎么修改?](https://img.aspxhome.com/file/2023/27/a231529_0.jpg)
2、之后,进入到“C:\Windows\System32\drivers\etc”目录下,这个时候会看到目录下有一个“hosts”文件,这个就是所谓的hosts文件;
![Win7系统hosts文件怎么修改?](https://img.aspxhome.com/file/2023/27/a231529_1.jpg)
3、在xp以及03系统下hosts文件的路径有点不同,这两个系统需要进入到“C:\Windows\System32\drivers\etc”目录下,即可找到对应的hosts文件。(默认位置为%SystemRoot%\system32\drivers\etc\)
![Win7系统hosts文件怎么修改?](https://img.aspxhome.com/file/2023/27/a231529_2.jpg)
修改hosts文件
1、进入到该目录下之后,双击打开该文件。如下图,弹出“打开方式”窗口,选择以“记事本”打开。
![Win7系统hosts文件怎么修改?](https://img.aspxhome.com/file/2023/27/a231529_3.jpg)
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
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何把任意程序添加到Win10控制面板
![](https://img.aspxhome.com/file/2023/29/a262225_0s.png)
wps表格怎么设置分隔字段图文教程
Ping命令使用方法详细说明
不输 MacType,这些优化思路也能让 Windows 字体细腻清晰
![](https://img.aspxhome.com/file/2023/0/a211140_0s.png)
骁龙821处理器怎么样_骁龙821评测、跑分、参数、相关手机及报价
![](https://img.aspxhome.com/file/2023/2/a284579_0s.jpg)
Win10专业版网络显示地球不能上网怎么处理?
![](https://img.aspxhome.com/file/2023/1/a278028_0s.jpg)
win10朗读模式怎么关闭?win10关闭语音朗读模式的方法
![](https://img.aspxhome.com/file/2023/30/a266204_0s.jpg)
Win10 TH2微软小娜会发短信 不过会过火小心
![](https://img.aspxhome.com/file/2023/5/a317213_0s.png)
USB共享网络怎么配置使用?
![](https://img.aspxhome.com/file/2023/6/a322619_0s.jpg)
wps演示如何制作四叶草
Word2003打不开怎么办? 1
![](https://img.aspxhome.com/file/2023/0/20480_0s.jpg)
Win10专业版文件类型的修改教程
![](https://img.aspxhome.com/file/2023/1/a278046_0s.png)
excel怎么限定列单元格的输入内容?
![](https://img.aspxhome.com/file/2023/7/42657_0s.jpg)
将网络数据导入Excel-如何在excel中创建数据仪表盘-
Win7强制关机无法正常启动?Win7强制关机无法正常启动解决方法
![](https://img.aspxhome.com/file/2023/1/a275923_0s.png)
Win10打开文件出现安全警告如何取消?Win10打开文件取消安全警告的方法
![](https://img.aspxhome.com/file/2023/28/a243555_0s.jpg)
Windows7怎么映射网络驱动器?
![](https://img.aspxhome.com/file/2023/27/a230499_0s.jpg)
excel跨表格数据引用的操作教程
Win7系统电脑游戏卡顿怎么办 硬件加速开启方法分享
![](https://img.aspxhome.com/file/2023/3/a300673_0s.jpg)
如何用Excel快速算出折扣?
![](https://img.aspxhome.com/file/2023/8/55138_0s.gif)