Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法
时间:2022-03-08 11:38:29
hosts文件是我们系统中一个非常重要的文件内容,包含了IP和URL映射的列表文本,如果这个文件出现问题就会导致很多的程序、功能无法使用,最近很多用户都在问电脑hosts文件异常不能上网怎么办?下面小编就来给大家带来具体的解决方法,感兴趣的朋友可以按步骤操作哦。
解决步骤
1、点击任务栏上的搜索框(也可以按Win+S打开),输入cmd,接着点击以管理员身份运行命令提示符应用。
![Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法](https://img.aspxhome.com/file/2023/30/a263880_0.png)
2、弹出用户账户控制窗口,点击是即可。
![Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法](https://img.aspxhome.com/file/2023/30/a263880_1.png)
3、打开管理员身份的命令提示符后,输入以下命令:
for /f %P in (‘dir %windir%\WinSxS\hosts /b /s’) do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
然后按回车执行。
![Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法](https://img.aspxhome.com/file/2023/30/a263880_2.png)
4、输入字母a,按回车。
![Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法](https://img.aspxhome.com/file/2023/30/a263880_3.png)
5、hosts文件如果存在问题,输入字母a后,会创建,否则会覆盖。最后,可以打开hosts文件,查看是否正常。
![Windows电脑hosts文件异常不能上网怎么解决?hosts文件异常解决方法](https://img.aspxhome.com/file/2023/30/a263880_4.png)
标签:hosts文件,hosts文件异常,电脑hosts文件异常不能上网
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Word文档不同位置如何切换跳转
2023-12-07 23:17:30
excel表格复制到word中不改变格式怎么做
2022-09-15 15:08:53
如何锁定Win10开始屏幕布局?
2022-07-27 19:42:08
![](https://img.aspxhome.com/file/2023/26/a222501_0s.jpg)
各个都很实用:win7系统电脑日常小技巧
2023-04-29 18:30:08
![](https://img.aspxhome.com/file/2023/28/a245925_0s.jpg)
Win7系统关机时提示Dwwin.exe初始化失败怎么办?
2022-08-15 17:37:03
![](https://img.aspxhome.com/file/2023/27/a232300_0s.jpg)
Win10 2004开机黑屏怎么办?开机黑屏的处理方法
2023-11-12 13:41:17
![](https://img.aspxhome.com/file/2023/5/48905_0s.jpg)
Win10专业版开机出现“Runtime Error”错误?解决方法分享
2022-02-15 18:18:49
![](https://img.aspxhome.com/file/2023/26/a224433_0s.jpg)
在Excel表格中如何使用Lower函数呢?
2022-05-12 00:22:48
Win11鼠标单击变双击怎么办?Win11鼠标单击变双击的解决方法
2022-01-26 14:27:40
![](https://img.aspxhome.com/file/2023/27/a237046_0s.jpg)
WPS轻松办公–表格在多页打印时如何显示标题页码
2022-03-10 04:18:26
Word2016表格中怎么添加斜线表头?
2023-04-24 00:52:30
![](https://img.aspxhome.com/file/2023/8/24698_0s.jpg)
win10如何关闭虚拟键盘?win10系统关闭虚拟键盘操作教程
2023-05-12 07:47:52
![](https://img.aspxhome.com/file/2023/28/a240179_0s.jpg)
苹果Mac应用软件加密及网站黑名单工具:Cisdem AppCrypt
2023-03-16 00:03:49
![](https://img.aspxhome.com/file/2023/1/a204871_0s.jpeg)
MagSafe外接电池容量怎么样?充电快吗?
2023-09-05 23:10:17
![](https://img.aspxhome.com/file/2023/6/45806_0s.png)
Windows Server 2008网络中禁止迅雷下载
2023-10-10 16:55:27
Word页眉怎么添加横线?word2007页眉添加横线方法
2023-12-06 15:21:15
![](https://img.aspxhome.com/file/2023/8/19868_0s.jpg)
excel怎么分段显示手机号?excel手机号分段显示方法
2022-04-17 21:19:37
![](https://img.aspxhome.com/file/2023/7/42447_0s.jpg)
Win7系统上网后变成多重网络的解决方法
2023-06-30 00:53:14
![](https://img.aspxhome.com/file/2023/29/a251144_0s.png)
excel按照颜色条件汇总函数的方法
2023-07-10 05:28:03
打印机取消打印却还在打印 win7系统怎么清除打印缓存?
2022-04-12 21:19:02
![](https://img.aspxhome.com/file/2023/29/a253421_0s.jpg)