微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Windows 10主机文件不parsing任何域

我编辑我的主机文件,以添加一个新的本地开发环境,从那时起,即使没有新的条目,它将无法正常工作。 我虽然文件必须腐败,所以我做了一个新的,仍然没有运气。

我已经确保使用正确的语法,正确的编码(ANSI也试过UTF-8),没有.txt文件扩展名,没有奇怪的字符(使用记事本++上的显示字符)我甚至尝试将其设置为系统文件试图强制Windows使用它,但也没有工作。

另外我刷新ipconfig的DNS,我已经尝试closuresWindows DNS服务,重新启动。 它似乎正在被完全忽略。

我大部分时间都在谷歌,这让我很难过!

使用FtpWebRequest附加到大型机上的文件的问题

CakePHP 1.3:高cpu使用率

WCF托pipe在Windows服务错误

Linux的哪个发行版最适合Java Web应用程序?

dns lookup在离线状态下不能正常工作

hosts文件包含以下内容

127.0.0.1 ocommerce.test 127.0.0.1 www.ocommerce.test

这就对了。

我也试过了

127.0.0.1 ocommerce.test www.ocommerce.test

127.0.0.1 ocommerce.test www.ocommerce.test

当ping域名时,我得到“Ping请求无法find主机ocommerce.test,请检查名称,然后再试一次”。

任何帮助将被大力赞赏。

编辑:

如果其他人甚至在创build新文件之后仍然在苦苦挣扎,请尝试复制这些内容并将行添加底部。 (这是我所复制的,不知道为什么,但之后它的工作!)

# copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally,comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

在Python 2.6.4的urllib2:任何方式来覆盖Windows主机文件

从Win32应用程序和IBM RDZ / Eclipse一致访问大型机文件

/ etc / hosts不会影响PHP

如何从http:// localhost:8123中删除端口号作为http:// localhost?

如何让Windows 7上的Web浏览器考虑etc / hosts文件

从另一台机器上复制一个已知的好文件,并确保只用Windows内置的记事本编辑器或记事本++编辑新文件 – 而不是其他任何东西。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐