Firefox 和 Chrome 在本地主机上运行缓慢;已知修复不适用于 Windows 7

标签 firefox google-chrome performance localhost

众所周知,当启用 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/

相关文章:

algorithm - 如何找到图形的直径?

java - 解决编译缓慢问题

c++ - (x < 0) 或 (x == -1) 哪个更快?

javascript - 如何构建并提交适用于所有现代浏览器的表单?

javascript - 即使服务器返回适当的响应 header ,Firefox 也不允许 CORS 请求

html - 自定义 @font-face 不会在 chrome 中加载(chrome 自定义字体不会呈现)

google-chrome - 在浏览器中内联打开 application/hal+json 响应而不是下载它

javascript - Google Chrome 开发者工具中的自定义堆栈跟踪?

google-chrome - 在 Chrome 和 Firefox 中使用换行符对 textarea 进行不同的 maxlength 验证

javascript - 浏览器拒绝 javascript play()