自几个月以来,这个问题一直影响着我的多站点开发。我的Yosemite OSX托管文件(位于/etc/hosts
从不尊重我放在顶部的这些网站:
192.168.10.10 blackbird.dev
192.168.10.10 saveeo.dev
可能有什么问题?为帮助回答者了解情况,我做了以下事情:
发生了什么事,帮助我。我已经用我所有的知识来完成这项工作,但我不知道是什么导致了这一点。我无法通过app.dev
和app2.dev
等浏览器访问我的开发者网站。相当令人沮丧。
附录A
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/aligajani/Dropbox/Vinkk_Software
to: /home/vagrant/Vinkk_Software
- map: /Users/aligajani/Dropbox/hackathon
to: /home/vagrant/hackathon
sites:
- map: blackbird.dev
to: /home/vagrant/Vinkk_Software/blackbird/public
- map: saveeo.dev
to: /home/vagrant/hackathon/saveeo/public
databases:
- homestead
- saveeo
variables:
- key: APP_ENV
value: local
附录B
此网页不可用
ERR_CONNECTION_TIMED_OUT
附录C
PING saveeo.dev (127.0.53.53): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
PING blackbird.dev (127.0.53.53): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
附录D
ping saveeo.dev
PING saveeo.dev (127.0.53.53) 56(84) bytes of data.
64 bytes from 127.0.53.53: icmp_seq=1 ttl=64 time=0.027 ms
64 bytes from 127.0.53.53: icmp_seq=2 ttl=64 time=0.055 ms
ping blackbird.dev
PING blackbird.dev (127.0.53.53) 56(84) bytes of data.
64 bytes from 127.0.53.53: icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from 127.0.53.53: icmp_seq=2 ttl=64 time=0.040 ms
答案 0 :(得分:1)
我在文本编辑中编辑后,我的hosts文件一直被忽略。我尝试了几种方法来修复行结尾,将IPv6条目添加到现有的IPv4条目中但没有成功。唯一有效的解决方案是使用这个免费的GUI插件来编辑主机文件。
https://github.com/specialunderwear/Hosts.prefpane/blob/master/README.mdown
答案 1 :(得分:0)
这听起来像你的mac dns解决方案的问题,与流浪者没有任何关系。