众所周知,当启用 IP6 时,Firefox 和 Chrome 在本地主机上速度会很慢。在以前版本的 Windows 中,最简单的修复方法是从主机文件中注释掉这一行,如 the answer to this question 中所述。 .
::1 localhost
但是,as noted in this question ,在 Windows 7 中,此行已被注释掉:
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
是否有其他方法可以在 Windows 7 中禁用 ::1 localhost
引用?
最佳答案
事实证明,如果您取消主机文件中 127.0.0.1 行的注释,Chrome 就会在本地主机 URL 上恢复到其快速状态。
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
主机文件通常位于C:\WINDOWS\system32\drivers\etc\hosts
。要在 Win7 中编辑它,您需要以管理员身份运行记事本。
关于Firefox 和 Chrome 在本地主机上运行缓慢;已知修复不适用于 Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1726585/