Hosts文件主要作用是定义IP地址和主机名的映射关系 , 是一个映射IP地址和主机名的规定 。

文章插图
工具/原料电脑
方法/步骤1用户HOSTS文件是在“c:\windows\system32\drivers\etc

文章插图
2Win+R后输入c:\windows\system32\drivers\etc

文章插图
3将hosts文件复制到桌面 , 用记事本打开!

文章插图
4删除记事本的全部内容 , 将以下内容复制后放入文件然后保存:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
【如何修复电脑hosts文件】#
# 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

文章插图
5将修改后的hosts文件放入c:\windows\system32\drivers\etc替换以前的hosts文件 , 修复成功!

文章插图
6Windows10系统修改hosts:
1.打开“运行”对话框
2.键入hosts文件路径:C:\WINDOWS\system32\drivers\etc 完成后 ,
3.点击下方的“确定”打开 ,

文章插图
7在hosts文件上点击鼠标右键 , 打开“属性”

文章插图
8“安全”选项卡 , 更改的当前用户名 , 然后点击下方的“编辑”在弹出的编辑权限操作界面 , 先点击选中需要更高权限的账户名称 ,

文章插图
9直接点击“是”即可

文章插图
10在hosts文件上点击鼠标右键 , 点击“打开方式”

文章插图
以上内容就是如何修复电脑hosts文件的内容啦 , 希望对你有所帮助哦!
推荐阅读
- 50岁女人如何显年轻?来学日本大妈的休闲舒适风
- 如何使用DirectX修复工具
- 电脑开机按快捷健无法进入BIOS解决办法和措施
- 如何开通手机微信
- 联系G40-45笔记本如何打开蓝牙
- 如何利用SQL Server 2012 like和通配符条件查询
- word wps如何设置表格边框粗细颜色及隐藏边框
- 猎魂觉醒电脑版怎么下载猎魂觉醒PC在电脑怎么玩
- 如何利用Maven Repository下载开源软件jar包
- 电脑耳机线怎么插