如何将主机文件重置回默认值 |
您所在的位置:网站首页 › ip重置命令 › 如何将主机文件重置回默认值 |
若要将主机文件重置回默认值,请执行以下步骤: 1. 打开记事本。 为此,请从屏幕右边缘向内轻扫,点击“ 搜索”,键入记事本,然后点击 记事本 图标。 或者,如果使用鼠标,请指向屏幕右上角,向下移动鼠标指针,单击“ 搜索”,键入“记事本”,然后单击“ 记事本”。 2. 复制以下文本,然后将文本粘贴到 文件中: # Copyright (c) 1993-2006 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 handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost 3. 在“ 文件 ”菜单上,选择“另存为”,在“ 文件名 ”框中键入“主机”, (如下图所示) ,然后将文件保存到桌面。 ![]() 4. 关闭记事本。 5.打开 %WinDir%\System32\Drivers\Etc 文件夹。 为此,请按照下列步骤操作: a. 从屏幕右边缘向内轻扫,点击“ 搜索”,键入“运行”,然后点击“ 运行” 图标。 或者,如果使用鼠标,请指向屏幕右上角,向下移动鼠标指针,选择“搜索”,键入“运行”,然后选择“ 运行” 图标。 b. 在“打开”框中键入 %WinDir%\System32\Drivers\Etc,然后选择“确定”。 6.选择“主机”文件,选择“重命名”,然后将文件重命名为“Hosts.old”。 7. 将步骤 3 中创建的 Hosts 文件复制或移动到 %WinDir%\System32\Drivers\Etc 文件夹。 根据提示输入管理员密码,点按或单击“继续”。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |