[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 协议》,转载必须注明作者和本文链接
城里的野山参
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
文章
68
粉丝
10
喜欢
29
收藏
41
排名:563
访问:1.4 万
私信
所有博文
社区赞助商