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

Her*_*ill 4 firefox performance google-chrome localhost

当启用 IP6 时,Firefox 和 Chrome 在本地主机上运行缓慢。在以前版本的 Windows 中,最简单的修复方法是从主机文件中注释掉这一行,如此问题的答案所述

::1 localhost
Run Code Online (Sandbox Code Playgroud)

但是,正如在这个问题中所指出的,在 Windows 7 中,这一行已经被注释掉了:

# localhost name resolution is handled within DNS itself.
#   127.0.0.1 localhost
#   ::1 localhost
Run Code Online (Sandbox Code Playgroud)

是否有其他方法可以禁用::1 localhostWindows 7 中的引用?

Her*_*ill 8

事实证明,如果您取消对主机文件中的 127.0.0.1 行的注释,Chrome 将返回到 localhost URL 上的活泼主机。

# localhost name resolution is handled within DNS itself.
    127.0.0.1 localhost
Run Code Online (Sandbox Code Playgroud)

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