Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
流浪者Laravel宅地-运行流浪者时出错_Laravel_Vagrant_Homestead - Fatal编程技术网

流浪者Laravel宅地-运行流浪者时出错

流浪者Laravel宅地-运行流浪者时出错,laravel,vagrant,homestead,Laravel,Vagrant,Homestead,我遵循了上的教程,当运行步骤“vagrant up”时,我收到以下错误消息(如下) 你知道问题出在哪里吗?运行最新版本的Oracle VirtualBox和最新版本的Vagrant。问候 -- -- yaml文件: -- 这是~/.homestad目录中的homestad.yaml文件的问题。我需要查看文件内容以帮助您更多 在您将缩进样式修改为仅使用空格字符后,出现了另一个问题,因为您尚未生成一对(公共和私有)密钥。为此: mkdir-p~/.ssh&&cd~/.ssh ssh-keygen-b

我遵循了上的教程,当运行步骤“vagrant up”时,我收到以下错误消息(如下) 你知道问题出在哪里吗?运行最新版本的Oracle VirtualBox和最新版本的Vagrant。问候

--

--

yaml文件:

--


这是~/.homestad目录中的homestad.yaml文件的问题。我需要查看文件内容以帮助您更多

在您将缩进样式修改为仅使用空格字符后,出现了另一个问题,因为您尚未生成一对(公共和私有)密钥。为此:

mkdir-p~/.ssh&&cd~/.ssh

ssh-keygen-b2048-t rsa-C”you@domain.com“

您可以使用默认文件名(id_rsa),键入密码并重复相同的密码。

Github中记录了使用Homestead的密码。提供了一种变通方法,如下所示:

解决方案:删除homestad.yaml文件夹中的类型:“nfs”

“Windows用户:NFS文件夹在Windows主机上不工作。Vagrant将 忽略您对Windows上NFS同步文件夹的请求


原始答案(针对编辑前的问题)

现在问题似乎出在您的ssh密钥上

No such file or directory @ rb_sysopen - C:/Users/Anders/.ssh/id_rsa (Errno::ENOENT)
标题为“设置SSH密钥”的部分包含以下说明,可帮助您生成一个SSH密钥(根据相关Windows说明进行调整):

设置SSH密钥

[……]

在Windows上,您可以安装并使用Git附带的
Git Bash
shell来发出上述命令。或者,您可以使用和

创建SSH密钥后,在
Homestead.yaml
文件的authorize属性中指定密钥的路径


如果您对命令行不太熟悉,我建议您使用PuTTYgen方法。

以防其他人通过谷歌来到这里,并且没有很好地阅读所有评论(就像我一样)

我遇到了同样的问题,即无法
向上流浪
,出现以下错误:

Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o actimeo=1,nolock,uid=1000,gid=1000 var_www_dev.mybox /var/www/dev.mybox

The error output from the command was:

  fmask     =<arg> umask of regular files
Vagrant无法装载VirtualBox共享文件夹。这通常是
因为文件系统“vboxsf”不可用。此文件系统不可用
通过VirtualBox来宾添加和内核模块提供。
请确认这些来宾添加项已正确安装在
这不是《流浪汉》中的错误,通常是由错误的
Vagrant框。对于上下文,尝试的命令为:
mount-t vboxsf-o actimeo=1,nolock,uid=1000,gid=1000 var\u www\u dev.mybox/var/www/dev.mybox
命令的错误输出为:
fmask=Windows用户可以安装插件,该插件允许您在“流浪者”和“家园”中使用NFS共享文件夹


因此,我通过运行
vagrant plugin install vagrant winnfsd
,然后运行
vagrant up

解决了这个错误。你的homestad.yaml文件包含“tabs”而不是空格。谢谢-似乎已经修复了一些问题。现在我又遇到了一个错误。谢谢Lucas->我在Windows上通过我的GitShell发出命令并解决了这个问题。New pro上面编辑的问题我从未使用过vagrant登录,也没有使用vagrant vbguest,可能是后者导致了问题。请尝试将其删除
vagrant插件卸载vagrant vbguest
,然后在主机中安装nfs内核服务器
sudo apt get install nfs kernel server
。我可以在Windows计算机上安装nfs内核服务器吗另外?或者这仅适用于基于Linux的主机?在Windows上,您可以安装vagrant插件以添加对NFS的支持:
vagrant插件安装vagrant winnfsd
()谢谢Brian Morton->我在Windows上通过我的GitShell发出命令并解决了这个问题。新问题已编辑above@AHL你能澄清一下你当前的问题是什么吗?原来的问题现在已经被所有的编辑弄糊涂了!@AHL我已经更新了答案以反映你问题的更新。谢谢Brian-这就是问题所在。A另一个问题:我应该把代码放在哪里才能访问它?我把一个文件放在C:\Users\Anders\Vagrant\Homestead\code下,但是当我试图在主机的浏览器中访问时,我得到一个“无法连接”的提示" error@AHL您可能需要打开一个单独的问题,因为这是一个单独的问题,但首先您可以运行
sudo netstat-lnutp
,查看
:8000
nginx
是否显示在该列表中的任何位置(它们应该显示)。如果没有,这意味着
nginx
,vagrant框`上的Web服务器没有运行。
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/Vagrant/Homestead/homestead.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Code
      type: "nfs"

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public
      hhvm: true

databases:
    - homestead
No such file or directory @ rb_sysopen - C:/Users/Anders/.ssh/id_rsa (Errno::ENOENT)
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o actimeo=1,nolock,uid=1000,gid=1000 var_www_dev.mybox /var/www/dev.mybox

The error output from the command was:

  fmask     =<arg> umask of regular files