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

工具/原料
- 电脑
方法/步骤
- 1
用户HOSTS文件是在“c:\windows\system32\drivers\etc
- 2
Win+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.
#
# 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文件,修复成功!
- 6
Windows10系统修改hosts:
1.打开“运行”对话框
2.键入hosts文件路径:C:\WINDOWS\system32\drivers\etc 完成后,
3.点击下方的“确定”打开,
- 7
在hosts文件上点击鼠标右键,打开“属性”
- 8
“安全”选项卡,更改的当前用户名,然后点击下方的“编辑”在弹出的编辑权限操作界面,先点击选中需要更高权限的账户名称,
- 9
直接点击“是”即可
- 10
在hosts文件上点击鼠标右键,点击“打开方式”
来源:百闻(微信/QQ号:9397569),转载请保留出处和链接!
本文链接:https://www.ibaiwen.com/web/246641.html
- 上一篇: excel中使用vba完成模糊查找功能
- 下一篇: PPT2010版如何添加并删除动画
- 热门文章
-
WB蒙特利尔(WB Montreal)——欧美十大最差视频游戏开发商
迅猛龙(Velociraptor)——欧美史前十大死亡动物
什么是果酱猫(What Marmalade Cats)?
神奇蜘蛛侠2(The Amazing Spider-Man 2)——欧美最佳蜘蛛侠电影
希瑟(Heather)——欧美十大最佳柯南灰歌
二人梭哈
faceu激萌怎么把瘦脸开到最大
奥兹奥斯本(Ozzy Osbourne)——欧美十大高估歌手
什么是小脑前下动脉(Anterior Inferior Cerebellar Artery)?
我应该知道康涅狄格州的什么(What Should I Know About Connecticut)?
- 热评文章
- 最新评论
-
- 最近访客
-
- 站点信息
-
- 文章总数:200248
- 页面总数:9
- 分类总数:1
- 标签总数:0
- 评论总数:0
- 浏览总数:497