我曾尝试为我的项目设置vagrant但我无法连接到我的localhost网站。我已经在/ etc / hosts /文件中设置了。试试我喜欢的每个流浪汉命令
vagrant up
vagrant reload
但我无法连接到我的本地主机。有人知道如何解决它
我的yaml config
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: D:/Work/crm
to: /home/vagrant/code/crm
sites:
- map: crm.local
to: /home/vagrant/code/crm/public
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
流浪汉最后一次记录
答案 0 :(得分:0)
将192.168.10.10添加到您的主机文件中。
例如,如果您使用的是Windows,则会在“C:\ Windows \ System32 \ drivers \ etc \ hosts”中找到此路径中的hosts文件。
在文件的末尾,您可以添加它。像这样的东西
192.168.10.10 laravel.test
希望这有帮助。