Firefox和Chrome在本地主机上运行缓慢;已知的修复程序在Windows 7上不起作用 [英] Firefox and Chrome slow on localhost; known fix doesn't work on Windows 7

查看:199
本文介绍了Firefox和Chrome在本地主机上运行缓慢;已知的修复程序在Windows 7上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已知启用IP6时,Firefox和Chrome在本地主机上的速度较慢。在以前的Windows版本中,最简单的修复方法是从hosts文件注释掉这一行,如

  :: 1本地主机

然而,

 #本地主机名称解析在DNS本身内处理。 
#127.0.0.1 localhost
#:: 1 localhost

在Windows 7中禁用 :: 1本地主机引用的另一种方法是:

<如果您取消注释主机文件中的127.0.0.1行,Chrome会返回到本地主机URL上的快速自我。

 #本地主机名称解析是在DNS本身内处理的。 
127.0.0.1 localhost

hosts文件通常位于 C :\WINDOWS\system32\drivers\etc\hosts 。要在Win7中进行编辑,您需要以管理员身份运行记事本。


Firefox and Chrome are known to be slow on localhost when IP6 is enabled. In previous versions of Windows, the simplest fix is to comment out this line from the hosts file, as explained in the answer to this question.

::1 localhost

However, as noted in this question, in Windows 7 this line is already commented out:

# localhost name resolution is handled within DNS itself.
#   127.0.0.1 localhost
#   ::1 localhost

Is there an alternative way to disable the ::1 localhost reference in Windows 7?

解决方案

Turns out if you uncomment the 127.0.0.1 line in the hosts file, Chrome goes back to its snappy self on localhost URLs.

# localhost name resolution is handled within DNS itself.
    127.0.0.1 localhost

The hosts file is typically at C:\WINDOWS\system32\drivers\etc\hosts. To edit it in Win7, you'll need to run Notepad as administrator.

这篇关于Firefox和Chrome在本地主机上运行缓慢;已知的修复程序在Windows 7上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆