【发布时间】:2019-04-09 10:30:57
【问题描述】:
我已遵循 Laravel 指南,并且已经启动并运行了 Vagrant,但是当我访问“http://homestead.test/”时,没有加载任何内容。
Homestead.yaml
--- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/code
to: /home/vagrant/code
sites:
- map: homestead.test
to: /home/vagrant/code/Laravel/public
databases:
- homestead
主机
# 127.0.0.1 localhost
# ::1 localhost
# 192.168.10.10 homestead.test
谁能解释一下我错过了什么?谢谢。
更新:我现在在尝试通过 GitBash 运行 Homestead 时遇到以下错误:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["modifyvm", "29535830-0e33-4f82-a359-6973606f6529", "--natpf1", "delete", "ssh"]
Stderr: VBoxManage.exe: error: Code E_FAIL (0x80004005) - Unspecified error (extended info not available)
VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 529 of file VBoxManageModifyVM.cpp
【问题讨论】:
-
nothing loads是什么意思?因为空白页表明它正在加载某些内容。 -
您好,页面显示“无法访问 homestead.test 的服务器 IP 地址。”
-
你能试试 ping
192.168.10.10吗? -
是的,“无法访问此站点 192.168.10.10 响应时间过长”
-
我知道这听起来很愚蠢。但是你能确定 Homestead 虚拟机是否正在运行吗?
标签: laravel laravel-5 localhost virtualhost homestead