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

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

问题描述

众所周知,当启用 IP6 时,Firefox 和 Chrome 在 localhost 上运行缓慢.在以前版本的 Windows 中,最简单的解决方法是从 hosts 文件中注释掉这一行,如 这个问题的答案.

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

但是,如本问题所述,在 Windows 7 中,这一行已经被注释掉了:

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

是否有其他方法可以在 Windows 7 中禁用 ::1 localhost 引用?

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

推荐答案

事实证明,如果您取消注释 hosts 文件中的 127.0.0.1 行,Chrome 会在 localhost URL 上恢复其活泼的自我.

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

hosts 文件通常位于 C:WINDOWSsystem32driversetchosts.要在 Win7 中编辑它,您需要以管理员身份运行记事本.

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

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

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