我只是有同样的问题。
昨天一切正常,现在什么都没有了-与您给出的错误相同。我发现网络管理员在此期间进行了一些更改。一些防火墙的东西。问题是Eclipse试图在“
localhost”(和一些随机端口)建立与JVM的连接。当我尝试ping localhost(或127.0.0.1)时,得到以下信息:
C:Windowssystem32>ping 127.0.0.1Pinging 127.0.0.1 with 32 bytes of data:PING: transmit failed. General failure.PING: transmit failed. General failure.PING: transmit failed. General failure.PING: transmit failed. General failure.
和
C:Windowssystem32>ping localhostPing request could not find host localhost. Please check the name and try again.
它暗示了在某些情况下,DNS应该可以解决此问题,并且如果防火墙阻止了localhost对DNS的请求,则会中断。我不得不更改主机文件并删除以下行中的注释,因此我不再依赖DNS:
# 127.0.0.1 localhost# ::1 localhost
尽管主机文件更改立即生效,但我认为某些进程已对此进行锁定并需要重新启动。之后,一切又恢复了。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)