电脑如何修改Hosts文件?
时间:2023-09-13 22:28:01
当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果用户需要对Hosts文件进行修改该怎么去操作呢?下面,小编就给大家准备了修改Hosts文件的方法了。
hosts文件修改
打开电脑文件夹,按照如下路径,找到hosts文件
(C:WindowsSystem32driversetc)
右键点击hosts文件,选择打开方式,使用系统自带的记事本打开
打开之后开始添加hosts记录,格式是【IP地址,网址或者域名】
点击:保存
(如果保存时提示没有足够权限,则先暂时保存在桌面上,然后将.txt后缀名去掉,再从桌面上移到原文件夹,替换原文件)
替换完成之后需要清除一下本地的DNS缓存,按快捷键 Win+R 打开运行
输入CMD,点击确定
在弹出界面中输入ipconfig/flushdns,回车
标签:修改Hosts文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
下月见!Windows 8.1 Update 2于8月发布 不会有开始菜单
2022-12-12 00:17:52
![](https://img.aspxhome.com/file/2023/29/a254512_0s.jpg)
windows系统中KB2686509补丁安装失败解决办法(详解)
2022-12-29 08:27:34
wps文档如何设置导航栏的位置
2023-07-17 13:24:19
![](https://img.aspxhome.com/file/2023/2/a182702_0s.png)
Win8蓝屏提示“你的电脑遇到问题需要重启”
2022-05-10 15:18:01
![](https://img.aspxhome.com/file/2023/4/a304394_0s.jpg)
如何通过dism命令解压Win8/8.1下install.wim文件
2022-05-08 01:40:04
![](https://img.aspxhome.com/file/2023/4/a305394_0s.jpg)
如何更新Mac 上的钥匙串密码?
2022-06-23 09:20:34
![](https://img.aspxhome.com/file/2023/8/a208168_0s.png)
win7无法打开鼠标属性怎么办?
2023-06-01 01:02:39
![](https://img.aspxhome.com/file/2023/4/a307122_0s.jpg)
Win7无法运行提示rasman.dll文件丢失的解决办法
2023-10-26 09:42:51
![](https://img.aspxhome.com/file/2023/29/a261674_0s.jpg)
Excel表格技巧—怎么用DEC2BIN 函数
2022-06-12 12:50:08
如何使用DiskGenius工具分区?使用DiskGenius的方法
2023-05-31 12:36:35
![](https://img.aspxhome.com/file/2023/8/a340079_0s.jpg)
iOS 13正式版要不要升级?附iOS 13.1正式版升级方法
2023-03-06 10:14:16
![](https://img.aspxhome.com/file/2023/0/a196760_0s.png)
win10系统出现提示microsoft applocale无法安装或找不到怎么解决?
2023-04-12 02:59:15
![](https://img.aspxhome.com/file/2023/28/a240805_0s.jpg)
通过Word文件收集信息 使用Excel自动摘录数据方法
2023-04-07 04:40:37
![](https://img.aspxhome.com/file/2023/4/23804_0s.jpg)
Win10专业版连不上网怎么回事?Win10专业版连不上网解决方法
2023-12-03 13:04:19
![](https://img.aspxhome.com/file/2023/1/a281641_0s.png)
获取每行中第一个非空单元格
2023-07-14 20:24:02
![](https://img.aspxhome.com/file/2023/4/a141844_0s.png)
升级Win10后风扇响噪音很大怎么更改散热方式?
2023-07-30 19:58:03
![](https://img.aspxhome.com/file/2023/28/a246384_0s.jpg)
如何使用philm app philm app的使用方法
2022-04-16 21:45:34
![](https://img.aspxhome.com/file/2023/8/a335342_0s.png)
WPS怎么才能添加自动纠错功能
2023-02-02 18:51:56
![](https://img.aspxhome.com/file/2023/4/a170824_0s.jpg)
PPT阶梯式饼图制作实例教程
2022-10-27 14:18:10
wps如何制作成绩表和统计成绩表
2022-10-22 12:36:12
![](https://img.aspxhome.com/file/2023/0/a164470_0s.jpg)