---
title: "Windows7 localhost 问题补充"
author: "bloodmud"
date: "2010-01-26T01:16:27Z"
tags: ["Microsoft", "Web", "Windows", "防火墙"]
categories: ["编程语言"]
slug: "windows7-localhost"
draft: false
lastmod: "2010-01-26T01:16:27Z"
id: 579740
url: "https://bloodmud.iteye.com/blog/579740"
---

Windows 7 默认是不能通过访问 http://localhost 访问 Web 服务器的，修改了 Windows\\System32\\drivers/etc/hosts 文件后可以访问了。但是还是经常发生无缘无故就不能访问的情况，关掉了 TCP/IPv6 和 Windows 防火墙，改善非常有限！

    想起自己是装的64位系统，是不是只改System32下的hosts文件不够？竟然真查到了另两个 hosts 文件。一个是cygwin的，肯定没影响。另外一个位于 Windows\\winsxs\\amd64\_microsoft-windows-w..nfrastructure-other\_31bf3856ad364e35\_6.1.7600.16385\_none\_6079f415110c0210 下面，是不是它的问题？修改权限后编辑之，貌似有改善，天知道是不是真的解决了！