当我尝试访问http://mysubdomain.localhost chrome解析为[::1]80时,即使主机文件中存在该域的明确条目。其他浏览器没有这种行为。 Firefox,safari和curl都可以解析我的主机文件中给出的IP地址。这是我的主机的全部文件的那一刻: ##
# Host Database
#
# localhost is used to configure the
我正在尝试开发一个本地使用OS X(测试版)的本地Docker来处理整个环境的Web应用程序。 为了假(测试Nginx的设置)我已编辑主机文件(在/私人/ etc/hosts中)生产的DNS配置: ##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is
我正在设置Linux机器,并且遇到问题。当我尝试运行命令: hostname -f
我得到这个错误: hostname: Name or service not known
我EW就这个问题和我想知道我怎么能解决这个问题。我的/ etc/hosts和/ etc /主机名的文件显示下一个: 的/ etc /主机名: namehost
/etc/hosts文件: 127.0.0.1 loc