[debug] vagrant报错mount.nfs: Connection timed out

环境

win11使用homestead搭建laravel开发环境
Vagrant 2.3.3
virtualbox 6.1

问题

folders:
    ...
    - map: D:\lovan\codeSrc\mexico
      to: /home/vagrant/code/mexico
      type: "nfs"
    - map: D:\lovan\codeSrc\mexico-new
      to: /home/vagrant/code/mexico-new
      type: "nfs"

homestead中使用这种的同步配置,会报错

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -o vers=3,udp,vers=3,udp,nolock 192.168.56.1:/D/lovan/codeSrc/mexico-new /home/vagrant/code/mexico-new

Stdout from the command:

Stderr from the command:

mount.nfs: Connection timed out

解决方案

mexico 注释掉即可,mexicomexico-new 在解析的时候存在问题,具体原因暂未找到。

本作品采用《CC 协议》,转载必须注明作者和本文链接
城里的野山参
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
文章
68
粉丝
10
喜欢
29
收藏
41
排名:562
访问:1.4 万
私信
所有博文
社区赞助商